pass $dms to view for error message

This commit is contained in:
Uwe Steinmann 2016-03-07 08:16:10 +01:00
parent 62095c443b
commit 068bd9a3f9

View File

@ -31,9 +31,8 @@ include("../inc/inc.ClassController.php");
include $settings->_rootDir . "languages/" . $settings->_language . "/lang.inc";
function _printMessage($heading, $message) {
global $theme;
$view = UI::factory($theme, 'ErrorDlg');
global $dms, $theme;
$view = UI::factory($theme, 'ErrorDlg', array('dms'=>$dms));
$view->exitError($heading, $message, true);
return;
}