Config Refactoring #803
11 changed files with 11 additions and 11 deletions
|
@ -79,7 +79,7 @@ function geonames_uninstall() {
|
|||
|
||||
function geonames_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('geonames', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('geonames'));
|
||||
}
|
||||
|
||||
function geonames_post_hook($a, &$item) {
|
||||
|
|
|
@ -38,7 +38,7 @@ function gravatar_uninstall() {
|
|||
|
||||
function gravatar_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('gravatar', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('gravatar'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -54,7 +54,7 @@ function impressum_footer($a, &$b) {
|
|||
|
||||
function impressum_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('impressum', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('impressum'));
|
||||
}
|
||||
|
||||
function impressum_show($a,&$b) {
|
||||
|
|
|
@ -73,7 +73,7 @@ function ldapauth_uninstall()
|
|||
|
||||
function ldapauth_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('ldapauth', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('ldapauth'));
|
||||
}
|
||||
|
||||
function ldapauth_hook_authenticate($a, &$b)
|
||||
|
|
|
@ -38,7 +38,7 @@ function libravatar_uninstall()
|
|||
|
||||
function libravatar_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('libravatar', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('libravatar'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -49,7 +49,7 @@ function openstreetmap_uninstall()
|
|||
|
||||
function openstreetmap_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('openstreetmap', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('openstreetmap'));
|
||||
}
|
||||
|
||||
function openstreetmap_alterheader($a, &$navHtml)
|
||||
|
|
|
@ -54,7 +54,7 @@ function piwik_uninstall() {
|
|||
|
||||
function piwik_load_config(\Friendica\App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('piwik', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('piwik'));
|
||||
}
|
||||
|
||||
function piwik_analytics($a,&$b) {
|
||||
|
|
|
@ -37,7 +37,7 @@ function public_server_uninstall()
|
|||
|
||||
function public_server_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('public_server', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('public_server'));
|
||||
}
|
||||
|
||||
function public_server_register_account($a, $b)
|
||||
|
|
|
@ -380,7 +380,7 @@ function pumpio_settings_post(App $a, array &$b)
|
|||
|
||||
function pumpio_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('pumpio', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('pumpio'));
|
||||
}
|
||||
|
||||
function pumpio_hook_fork(App $a, array &$b)
|
||||
|
|
|
@ -37,7 +37,7 @@ function testdrive_uninstall() {
|
|||
|
||||
function testdrive_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('testdrive', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('testdrive'));
|
||||
}
|
||||
|
||||
function testdrive_globaldir_update($a,&$b) {
|
||||
|
|
|
@ -142,7 +142,7 @@ function twitter_uninstall()
|
|||
|
||||
function twitter_load_config(App $a, Config\ConfigCacheLoader $loader)
|
||||
{
|
||||
$a->getConfig()->loadConfigArray($loader->loadConfigFile('twitter', true));
|
||||
$a->getConfig()->loadConfigArray($loader->loadAddonConfig('twitter'));
|
||||
}
|
||||
|
||||
function twitter_check_item_notification(App $a, array &$notification_data)
|
||||
|
|
Loading…
Reference in a new issue