Commit graph

119 commits

Author SHA1 Message Date
39c654da00 [various] Remove App dependency from hook functions 2023-01-13 21:16:09 -05:00
818d21ba57
[various] adapt README.md 2023-01-05 02:38:54 +01:00
005f9af69b
Introduce ConfigFileManager for config files 2023-01-01 20:21:56 +01:00
71d9a42688 HU translation of various addons updated 2022-12-17 09:08:25 +01:00
b64639dc4c PL translation of various addons updated 2022-12-17 09:08:11 +01:00
0b0d555c69 FR translation of various addons updated 2022-12-17 09:04:29 +01:00
2fc7356cf4 [various] Set config loaded from default values to SOURCE_STATIC
- This prevents from clobbering values loaded from base `config/` folder
2022-11-20 12:44:53 -05:00
46d4d0b51e [various] Remove config/addon.config.php in favor of per-addon configuration file 2022-11-20 11:43:42 -05:00
Paul Saunders
b9207f7e48
Hook::register has changed API
`Hook::register` now takes a string as the second parameter, not an array. Without this change Friendica fails to start, with errors such as:
```
2022-11-07T11:40:20Z index [ERROR]: Uncaught Exception TypeError: "Argument 2 passed to piwik_analytics() must be of the type array, string given, called in /var/www/html/src/Core/Hook.php on line 223" at /var/www/html/addon/piwik/piwik.php line 53 {"exception":"TypeError: Argument 2 passed to piwik_analytics() must be of the type array, string given, called in /var/www/html/src/Core/Hook.php on line 223 and defined in /var/www/html/addon/piwik/piwik.php:53\nStack trace:\n#0 /var/www/html/src/Core/Hook.php(223): piwik_analytics(Object(Friendica\\App), '<h1><img width=...')\n#1 /var/www/html/src/Core/Hook.php(198): Friendica\\Core\\Hook::callSingle(Object(Friendica\\App), 'page_end', Array, '<h1><img width=...')\n#2 /var/www/html/src/App/Page.php(493): Friendica\\Core\\Hook::callAll('page_end', '<h1><img width=...')\n#3 /var/www/html/src/App.php(722): Friendica\\App\\Page->run(Object(Friendica\\App), Object(Friendica\\App\\BaseURL), Object(Friendica\\App\\Arguments), Object(Friendica\\App\\Mode), Object(GuzzleHttp\\Psr7\\Response), Object(Friendica\\Core\\L10n), Object(Friendica\\Util\\Profiler), Object(Friendica\\Core\\Config\\Type\\JitConfig), Object(Friendica\\Core\\PConfig\\Type\\JitPConfig))\n#4 /var/www/html/index.php(44): Friendica\\App->runFrontend(Object(Friendica\\App\\Router), Object(Friendica\\Core\\PConfig\\Type\\JitPConfig), Object(Friendica\\Security\\Authentication), Object(Friendica\\App\\Page), Object(Friendica\\Util\\HTTPInputData), 1667821218.5153)\n#5 {main}"} - {"file":null,"line":null,"function":null,"uid":"73d499","process_id":52}
```
2022-11-07 11:42:31 +00:00
4487b2a923 FR translation of various addons updated 2022-08-19 19:37:09 +02:00
06b15a6ed0
Changes:
- added missing type-hints
- avoided local variables
- added some documentation
- changed double-quotes to single
2022-06-30 13:33:22 +02:00
04df7f6e05
Changes:
- added more type-hints
- cleaned up some files (curly braces, spaces)
2022-06-23 07:17:00 +02:00
931be19eca
DA DK translation for various addons added THX atjn 2022-05-02 12:26:36 +02:00
ed96e0a2f6
PL translation update THX strebski 2022-03-08 16:26:19 +01:00
484482a4ce HU addon translation update THX Balázs Úr 2022-01-22 18:52:30 +01:00
631b456755 SV addon translation update THX Kristoffer Grundström 2022-01-22 18:50:50 +01:00
Michael Vogel
8fea67dade
Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
2021-11-07 14:02:13 +01:00
cff3dd67b0 "escapeTags" is removed from the addons 2021-11-07 08:49:34 +00:00
63fca0af29
Refactoring Core class structures ... 2021-10-26 21:44:28 +02:00
ae86b2e806
Restructure (P)Config to follow new paradigm 2021-10-23 11:29:15 +02:00
0bf6612ea3 "log" is replaced with the corresponding logging functions 2021-10-21 06:04:27 +00:00
86de95f77b added AR translations to the Friendica addons
Thanks to the work of طاهر, Farida Khalaf, محمد أحمد, abidin toumi, Abdullah Alsabi, ButterflyOfFire and ominds the translation of Friendica into Arabic has crossed the magic 50% progress mark, so we now include their work into the addons repository.
2021-10-10 12:55:16 +02:00
25ba6023d0 regenerated all the strings 2021-10-10 08:27:53 +02:00
7038a2065f DE translation piwik addon THX Till Mohr 2021-05-24 08:23:04 +02:00
8bf71582a0 ES translation of the piwik addon updated THX Senex Petrovic 2021-04-06 06:59:40 +02:00
89f1fb802a piwik addon HU translation added THX Balázs Úr 2021-03-28 22:31:13 +02:00
500aab3c53 regenerated all strings.php files from the current translation strings (message.po) 2021-02-01 18:47:38 +01:00
7f3704ae54 regenerated messages.po files of the addons 2021-02-01 18:29:42 +01:00
c15b83d9c0 piwik IT translation THX Sylke Vicious 2020-09-18 08:07:15 +02:00
203672cf27 [various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
2020-07-27 08:30:41 -04:00
3f84caeec5 Unneeded "info" messages removed 2020-07-23 03:48:52 +00:00
65e4726718
Remove unneeded Config namespace usages 2020-01-19 22:50:43 +01:00
75143e27b5
Move Config::set() to DI::config()->set() 2020-01-19 21:21:52 +01:00
1ce63185ab
Move Config::get() to DI::config()->get() 2020-01-19 21:21:12 +01:00
f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
d3717045f7 [various] Replace remaining $a->page by DI::page() 2019-12-30 15:53:43 -05:00
905823ea63 Update obsolete App::getBaseUrl calls to DI::baseUrl 2019-12-29 21:55:10 -05:00
Philipp Holzer
5c6108b3cc
Dynamic config loading
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 21:44:54 +02:00
c8a63f6b9c
Moving/Renaming ConfigCacheLoader to ConfigFileLoader 2019-03-24 22:52:43 +01:00
6fa93b0fd9 added IT translation for piwik addon THX fabrixxm 2019-03-11 18:17:45 +01:00
20feae4610 piwik addon update EN_GB translation THX Andy H3 2019-03-11 18:08:37 +01:00
d58ccd23d8 PL translation update piwik THX waldis 2019-03-08 06:32:17 +01:00
e68af0eb88 CS translation piwik addon THX aditoo 2019-02-21 07:05:55 +01:00
fc85b9dd3f DE translation piwik addon 2019-02-21 07:04:24 +01:00
56c218a337 more Matomo / Piwik, and regen piwik translation base 2019-02-19 10:43:22 +01:00
Michael Vogel
635ad296e8
Merge pull request #811 from tobiasd/20190219-matomo
piwik is called matomo nowadays
2019-02-19 07:50:12 +01:00
9954ba3096 piwik is called matomo nowadays 2019-02-19 07:21:05 +01:00
ae228e40e8 DE translation of piwik updated THX rompe 2019-02-19 07:05:45 +01:00
2e33d99f18
Moved method names & class 2019-02-18 01:22:09 +01:00