diff --git a/administrator/language/en-GB/plg_installer_override.ini b/administrator/language/en-GB/plg_installer_override.ini index e7fa71ace3a79..a7871c8c0575a 100644 --- a/administrator/language/en-GB/plg_installer_override.ini +++ b/administrator/language/en-GB/plg_installer_override.ini @@ -4,6 +4,7 @@ ; Note : All ini files need to be saved as UTF-8 PLG_INSTALLER_OVERRIDE="Installer - Override" +PLG_INSTALLER_OVERRIDE_COMPONENT_LINK="Check the overrides in the %s." PLG_INSTALLER_OVERRIDE_N_FILE_UPDATED="%s Overridden files have changed." PLG_INSTALLER_OVERRIDE_N_FILE_UPDATED_1="Overridden file has changed." PLG_INSTALLER_OVERRIDE_PLUGIN_XML_DESCRIPTION="This plugin enables notifications and handling of overrides after an update in case of changes." diff --git a/plugins/installer/override/override.php b/plugins/installer/override/override.php index 39eb1428cbb9d..ee330a24dac72 100644 --- a/plugins/installer/override/override.php +++ b/plugins/installer/override/override.php @@ -11,8 +11,10 @@ use Joomla\CMS\Application\CMSApplicationInterface; use Joomla\CMS\Date\Date; +use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Plugin\CMSPlugin; +use Joomla\CMS\Uri\Uri; use Joomla\Database\ParameterType; /** @@ -192,7 +194,10 @@ public function finalize($result) if ($num != 0) { + $url = Uri::base() . 'index.php?option=com_templates&view=templates'; + $link = HTMLHelper::_('link', $url, Text::_('COM_TEMPLATES'), 'class="alert-link"'); $this->app->enqueueMessage(Text::plural('PLG_INSTALLER_OVERRIDE_N_FILE_UPDATED', $num), 'notice'); + $this->app->enqueueMessage(Text::sprintf('PLG_INSTALLER_OVERRIDE_COMPONENT_LINK', $link), 'notice'); $this->saveOverrides($result); }