fix settings namespace
This commit is contained in:
parent
12c1305d4d
commit
9ebc2c4f8f
@ -18,6 +18,6 @@ $this->registerModule(
|
|||||||
/* Name */ "Simply favicon",
|
/* Name */ "Simply favicon",
|
||||||
/* Description*/ "Multi-agents favicon",
|
/* Description*/ "Multi-agents favicon",
|
||||||
/* Author */ "JC Denis",
|
/* Author */ "JC Denis",
|
||||||
/* Version */ '2021.08.15',
|
/* Version */ '2021.08.16',
|
||||||
/* Permissions */ 'admin'
|
/* Permissions */ 'admin'
|
||||||
);
|
);
|
||||||
|
@ -32,7 +32,7 @@ class publicSimplyFavicon extends dcUrlHandlers
|
|||||||
global $core;
|
global $core;
|
||||||
|
|
||||||
$mimetypes = self::$mimetypes;
|
$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
|
if (!$core->blog->settings->system->simply_favicon
|
||||||
|| empty($arg)
|
|| empty($arg)
|
||||||
@ -55,7 +55,7 @@ class publicSimplyFavicon extends dcUrlHandlers
|
|||||||
}
|
}
|
||||||
|
|
||||||
$mimetypes = self::$mimetypes;
|
$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') . '.';
|
$public_url = $core->blog->url.$core->url->getBase('simplyFavicon') . '.';
|
||||||
|
|
||||||
// ico : IE6
|
// ico : IE6
|
||||||
|
Loading…
Reference in New Issue
Block a user