Refactoring ConfigCacheLoader methods

This commit is contained in:
Philipp Holzer 2019-02-05 22:27:56 +01:00
parent 2ba4c95f4b
commit 7aa0760742
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
11 changed files with 11 additions and 11 deletions

View File

@ -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) {

View File

@ -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'));
}
/**

View File

@ -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) {

View File

@ -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)

View File

@ -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'));
}
/**

View File

@ -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)

View File

@ -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) {

View File

@ -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)

View File

@ -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)

View File

@ -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) {

View File

@ -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)