Commit Graph

54 Commits

Author SHA1 Message Date
Philipp Holzer 648fadedd3
[various] Adapt BaseURL calls for new UriInterface 2023-02-18 21:04:47 +01:00
Hypolite Petovan 39c654da00 [various] Remove App dependency from hook functions 2023-01-13 21:16:09 -05:00
Philipp Holzer 005f9af69b
Introduce ConfigFileManager for config files 2023-01-01 20:21:56 +01:00
Hypolite Petovan 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
Roland Häder 04df7f6e05
Changes:
- added more type-hints
- cleaned up some files (curly braces, spaces)
2022-06-23 07:17:00 +02:00
Hypolite Petovan fd29c1a074 [various] Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter 2021-12-03 07:35:02 -05:00
Philipp Holzer 63fca0af29
Refactoring Core class structures ... 2021-10-26 21:44:28 +02:00
Philipp Holzer ae86b2e806
Restructure (P)Config to follow new paradigm 2021-10-23 11:29:15 +02:00
Michael 6b0172d093 Replace calls to "notification" with the new function 2021-10-19 19:53:10 +00:00
Michael 16d7eafd41 More replaced "q" calls 2021-10-07 05:53:16 +00:00
Hypolite Petovan 6d1ac20281 [various] Fix Notification class paths
- Address https://github.com/friendica/friendica/issues/9896
- Follow-up to https://github.com/friendica/friendica/pull/9860
2021-02-03 17:29:09 -05:00
Hypolite Petovan 00e8602892 [various] Move notification classes 2021-01-23 15:36:36 -05:00
Michael 6272ee3d09 Removed unneeded data for notifications 2020-11-28 17:24:51 +00:00
Hypolite Petovan 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
nupplaPhil 6cc04a3ebc
Move Notify::TYPE_SYSTEM 2020-02-05 21:43:31 +01:00
Philipp Holzer 65e4726718
Remove unneeded Config namespace usages 2020-01-19 22:50:43 +01:00
Philipp Holzer 1ce63185ab
Move Config::get() to DI::config()->get() 2020-01-19 21:21:12 +01:00
Philipp Holzer f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
Philipp Holzer 48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
Philipp Holzer b6fd3f71f0
Remove get_server() in favor of Search::getGlobalDirectory() 2020-01-05 00:04:04 +01:00
Philipp Holzer 19fd0a22d7
Remove get_server() in favor of Config::get() 2020-01-04 23:59:19 +01:00
Hypolite Petovan 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
Philipp Holzer c8a63f6b9c
Moving/Renaming ConfigCacheLoader to ConfigFileLoader 2019-03-24 22:52:43 +01:00
Philipp Holzer 2e33d99f18
Moved method names & class 2019-02-18 01:22:09 +01:00
Hypolite Petovan 37dd8a938b
Merge pull request #803 from nupplaphil/config_refact
Config Refactoring
2019-02-06 10:52:02 -05:00
Philipp Holzer 7aa0760742
Refactoring ConfigCacheLoader methods 2019-02-05 22:27:56 +01:00
Philipp Holzer 2ba4c95f4b
Bugfixing Addon-config 2019-02-04 02:07:58 +01:00
Philipp Holzer b541efc5e6
3) Introducing ConfigFactory 2019-02-03 22:22:03 +01:00
Tobias Diekershoff 08206fdcc0 Merge branch 'master' into develop 2019-01-21 10:04:26 +01:00
Hypolite Petovan c27b1cb66f Replace deprecated Addon::*registerHook by Hook::*register 2018-12-26 10:20:18 -05:00
Hypolite Petovan 85b5715a44 Remove require include/* 2018-12-26 00:36:43 -05:00
Hypolite Petovan d836593a3b Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
2018-11-30 09:11:56 -05:00
Hypolite Petovan 336276727f [testdrive] Update config file style/name 2018-11-25 02:16:20 -05:00
Philipp Holzer 1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Hypolite Petovan 522e8e58c2 [multiple] Rename dbesc to DBA::escape 2018-07-23 15:35:22 -04:00
Hypolite Petovan ed8eb47b11 [testdrive] Fix Friendica official URL 2018-07-15 12:52:24 -04:00
Hypolite Petovan 9e1e088c09 [various] Replace direct accesses to $a->config with Config::get 2018-07-10 08:41:32 -04:00
Hypolite Petovan 9f0a441fe4 [testdrive] Add addon config
- Update mentions of .htconfig.php
2018-07-10 08:41:31 -04:00
Hypolite Petovan 1900da6c42 Move Temporal::convert() to DateTimeFormat::convert() 2018-02-03 11:40:39 -05:00
Hypolite Petovan e4f32f8ac8 Add Temporal::utcNow() 2018-02-03 11:40:38 -05:00
Hypolite Petovan b24690e8df Refactor datetime_convert() into Temporal::convert() 2018-02-03 11:40:38 -05:00
Adam Magness b191d5716c Remove sprintf with translations
don't use sprintf with translation functions
2018-01-23 22:59:20 -05:00
Adam Magness f8c162cbfb Update t() calls
Update all t() calls.
2018-01-22 18:09:05 -05:00
Adam Magness 96c41e5623 Update strings
update strings to contain addon
2018-01-20 11:01:59 -05:00
Adam Magness 0afd633346 Addon class
plugin moved to Addon src class
2018-01-19 07:20:17 -05:00
Hypolite Petovan 27b60e003f Use short form array syntax everywhere 2018-01-15 08:15:33 -05:00
Hypolite Petovan ec0c2e837d Move Contact to src
- Add relevant use statements
- Change method calls
- Remove mentions to include/Contact.php
2017-11-19 17:09:54 -05:00
Adam Magness 48dcbc6f3f Issue 3873
Replace deprecated functions with new syntax
2017-11-06 18:55:24 -05:00
Michael Vogel 7baebfe513 Make the directory configurable 2015-08-23 11:32:47 +02:00