diff --git a/administrator/templates/atum/error_full.php b/administrator/templates/atum/error_full.php index d53a88e6cb22b..933f5d4219153 100644 --- a/administrator/templates/atum/error_full.php +++ b/administrator/templates/atum/error_full.php @@ -15,7 +15,7 @@ use Joomla\CMS\Router\Route; use Joomla\CMS\Uri\Uri; -/** @var JDocumentError $this */ +/** @var \Joomla\CMS\Document\ErrorDocument $this */ $app = Factory::getApplication(); $input = $app->input; @@ -57,8 +57,16 @@ $monochrome = (bool) $this->params->get('monochrome'); -HTMLHelper::getServiceRegistry()->register('atum', 'JHtmlAtum'); +$htmlRegistry = HTMLHelper::getServiceRegistry(); + +// This may already be registered in main template file. +if (!$htmlRegistry->hasService('atum')) +{ + $htmlRegistry->register('atum', 'JHtmlAtum'); +} + HTMLHelper::_('atum.rootcolors', $this->params); + ?> diff --git a/administrator/templates/atum/error_login.php b/administrator/templates/atum/error_login.php index 565ee6dafe58c..dc5134331b4c3 100644 --- a/administrator/templates/atum/error_login.php +++ b/administrator/templates/atum/error_login.php @@ -14,7 +14,7 @@ use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; -/** @var \Joomla\CMS\Document\HtmlDocument $this */ +/** @var \Joomla\CMS\Document\ErrorDocument $this */ $app = Factory::getApplication(); $input = $app->input; @@ -63,6 +63,7 @@ } HTMLHelper::_('atum.rootcolors', $this->params); + ?>