diff options
Diffstat (limited to 'ui/app/views/system.warning.php')
-rw-r--r-- | ui/app/views/system.warning.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/app/views/system.warning.php b/ui/app/views/system.warning.php index a03ab3f4061..20543ac8a3b 100644 --- a/ui/app/views/system.warning.php +++ b/ui/app/views/system.warning.php @@ -21,11 +21,15 @@ /** * @var CView $this + * @var array $data */ -$pageHeader = (new CPageHeader(_('Fatal error, please report to the Zabbix team'), CWebUser::getLang())) - ->addCssFile('assets/styles/'.CHtml::encode($data['theme']).'.css') - ->display(); +$page_header = (new CHtmlPageHeader(_('Fatal error, please report to the Zabbix team'), CWebUser::getLang())); + +$page_header + ->setTheme($data['theme']) + ->addCssFile('assets/styles/'.$page_header->getTheme().'.css') + ->show(); $buttons = [ (new CButton('back', _s('Go to "%1$s"', CMenuHelper::getFirstLabel()))) |