diff --git a/src/index.php b/src/index.php index 989cc5f..aeb8946 100644 --- a/src/index.php +++ b/src/index.php @@ -75,7 +75,8 @@ if ($params_favicon_source) { // 'images/logo.png' (images folder) // 'media/templates/site/mokocassiopeia/images/logo.png' (template media) // 'logo.png' (bare filename) - $faviconSourceRel = ltrim($params_favicon_source, '/'); + // Strip Joomla's #joomlaImage:// fragment from media field value + $faviconSourceRel = strtok(ltrim($params_favicon_source, '/'), '#'); $faviconSourceAbs = JPATH_ROOT . '/' . $faviconSourceRel; // Try common prefixes if not found if (!is_file($faviconSourceAbs)) {