mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +02:00
Move Config::get() to DI::config()->get()
This commit is contained in:
parent
c67ad31c8b
commit
1ce63185ab
38 changed files with 342 additions and 342 deletions
|
@ -28,7 +28,7 @@ function pageheader_addon_admin(App &$a, &$s)
|
|||
$stylesheetPath = __DIR__ . '/pageheader.css';
|
||||
DI::page()->registerStylesheet($stylesheetPath);
|
||||
|
||||
$words = Config::get('pageheader','text');
|
||||
$words = DI::config()->get('pageheader','text');
|
||||
if(! $words)
|
||||
$words = '';
|
||||
|
||||
|
@ -61,7 +61,7 @@ function pageheader_fetch(App $a, &$b)
|
|||
if(file_exists('pageheader.html')){
|
||||
$s = file_get_contents('pageheader.html');
|
||||
} else {
|
||||
$s = Config::get('pageheader', 'text');
|
||||
$s = DI::config()->get('pageheader', 'text');
|
||||
}
|
||||
|
||||
$stylesheetPath = __DIR__ .'/pageheader.css';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue