feat: move favicons to template media folder and clean up old locations
- Favicons now output to media/templates/site/mokoonyx/images/favicons/ - On install/update: removes old /images/favicons/ directory - On install/update: removes stale favicon files from site root Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -97,8 +97,8 @@ if ($params_favicon_source) {
|
||||
}
|
||||
}
|
||||
}
|
||||
$faviconOutputDir = JPATH_ROOT . '/images/favicons';
|
||||
$faviconUrlBase = Uri::root(true) . '/images/favicons';
|
||||
$faviconOutputDir = JPATH_ROOT . '/media/templates/site/' . $this->template . '/images/favicons';
|
||||
$faviconUrlBase = Uri::root(true) . '/media/templates/site/' . $this->template . '/images/favicons';
|
||||
|
||||
if (MokoFaviconHelper::generate($faviconSourceAbs, $faviconOutputDir)) {
|
||||
$faviconHeadTags = MokoFaviconHelper::getHeadTags($faviconUrlBase);
|
||||
|
||||
Reference in New Issue
Block a user