* system will call the name_uninstall() function.
*
*/
+
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
Logger::log("removed geonames");
}
-function geonames_load_config(\Friendica\App $a)
+function geonames_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__. '/config/geonames.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('geonames'));
}
function geonames_post_hook($a, &$item) {
Logger::log("unregistered gravatar in avatar_lookup hook");
}
-function gravatar_load_config(App $a)
+function gravatar_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/gravatar.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('gravatar'));
}
/**
}
}
-function impressum_load_config(\Friendica\App $a)
+function impressum_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/impressum.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('impressum'));
}
function impressum_show($a,&$b) {
*
* ...etc.
*/
+
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
Hook::unregister('authenticate', 'addon/ldapauth/ldapauth.php', 'ldapauth_hook_authenticate');
}
-function ldapauth_load_config(\Friendica\App $a)
+function ldapauth_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/ldapauth.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('ldapauth'));
}
function ldapauth_hook_authenticate($a, &$b)
Logger::log("unregistered libravatar in avatar_lookup hook");
}
-function libravatar_load_config(App $a)
+function libravatar_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/libravatar.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('libravatar'));
}
/**
* Author: Klaus Weidenbach
*
*/
+
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
use Friendica\Util\Network;
use Friendica\Util\Strings;
Logger::log("removed openstreetmap");
}
-function openstreetmap_load_config(\Friendica\App $a)
+function openstreetmap_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/openstreetmap.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('openstreetmap'));
}
function openstreetmap_alterheader($a, &$navHtml)
* about http/https but beware to put the trailing / at the end of your
* setting.
*/
+
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
Logger::log("uninstalled piwik addon");
}
-function piwik_load_config(\Friendica\App $a)
+function piwik_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/piwik.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('piwik'));
}
function piwik_analytics($a,&$b) {
use Friendica\App;
use Friendica\BaseModule;
-use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Hook;
use Friendica\Core\L10n;
Hook::unregister('logged_in', 'addon/public_server/public_server.php', 'public_server_login');
}
-function public_server_load_config(App $a)
+function public_server_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/public_server.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('public_server'));
}
function public_server_register_account($a, $b)
}
}
-function pumpio_load_config(App $a)
+function pumpio_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/pumpio.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('pumpio'));
}
function pumpio_hook_fork(App $a, array &$b)
}
-function testdrive_load_config(App $a)
+function testdrive_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/testdrive.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('testdrive'));
}
function testdrive_globaldir_update($a,&$b) {
Hook::unregister('addon_settings_post', __FILE__, 'twitter_settings_post');
}
-function twitter_load_config(App $a)
+function twitter_load_config(App $a, Config\ConfigCacheLoader $loader)
{
- $a->loadConfigFile(__DIR__ . '/config/twitter.config.php');
+ $a->getConfig()->loadConfigArray($loader->loadConfigFile('twitter'));
}
function twitter_check_item_notification(App $a, array &$notification_data)