fix settings namespace

master
Jean-Christian Paul Denis 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