fix settings namespace

This commit is contained in:
JcDenis 2021-08-16 23:46:51 +02:00
parent 12c1305d4d
commit 9ebc2c4f8f
2 changed files with 3 additions and 3 deletions

View file

@ -18,6 +18,6 @@ $this->registerModule(
/* Name */ "Simply favicon",
/* Description*/ "Multi-agents favicon",
/* Author */ "JC Denis",
/* Version */ '2021.08.15',
/* Version */ '2021.08.16',
/* Permissions */ 'admin'
);

View file

@ -32,7 +32,7 @@ class publicSimplyFavicon extends dcUrlHandlers
global $core;
$mimetypes = self::$mimetypes;
$public_path = path::real(path::fullFromRoot((string) $core->blog->settings->public_path, DC_ROOT)) . '/favicon.';
$public_path = path::real(path::fullFromRoot($core->blog->settings->system->public_path, DC_ROOT)) . '/favicon.';
if (!$core->blog->settings->system->simply_favicon
|| empty($arg)
@ -55,7 +55,7 @@ class publicSimplyFavicon extends dcUrlHandlers
}
$mimetypes = self::$mimetypes;
$public_path = path::real(path::fullFromRoot((string) $core->blog->settings->public_path, DC_ROOT)) . '/favicon.';
$public_path = path::real(path::fullFromRoot($core->blog->settings->system->public_path, DC_ROOT)) . '/favicon.';
$public_url = $core->blog->url.$core->url->getBase('simplyFavicon') . '.';
// ico : IE6