diff --git a/op/op.Login.php b/op/op.Login.php index 160017942..41881a30e 100644 --- a/op/op.Login.php +++ b/op/op.Login.php @@ -30,13 +30,9 @@ include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc"; function _printMessage($heading, $message) { - UI::exitError($heading, $message); - exit; - UI::htmlStartPage($heading, "login"); - UI::globalBanner(); - UI::pageNavigation($heading); - UI::contentContainer($message); - UI::htmlEndPage(); + global $theme; + $view = UI::factory($theme, 'ErrorDlg'); + $view->exitError($heading, $message, true); return; }