Move Config::get() to DI::config()->get()

This commit is contained in:
nupplaPhil 2020-01-19 21:21:12 +01:00
parent c67ad31c8b
commit 1ce63185ab
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
38 changed files with 342 additions and 342 deletions

View file

@ -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';