include inc.ClassAccessOperation.php because it is need at many places and the back button of the ErrorDlg works again

This commit is contained in:
Uwe Steinmann 2022-04-04 08:42:26 +02:00
parent f24330740a
commit d80d1be9de

View File

@ -20,6 +20,7 @@
require_once('inc.ClassUI_Default.php');
require_once('inc.ClassViewCommon.php');
require_once('inc.ClassAccessOperation.php');
/* $theme was possibly set in inc.Authentication.php */
if (!isset($theme) || strlen($theme)==0) {
@ -185,11 +186,9 @@ class UI extends UI_Default {
static function exitError($pagetitle, $error, $noexit=false, $plain=false) {
global $theme, $dms, $user, $settings;
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
$view = UI::factory($theme, 'ErrorDlg');
$view->setParam('dms', $dms);
$view->setParam('user', $user);
$view->setParam('accessobject', $accessop);
$view->setParam('pagetitle', $pagetitle);
$view->setParam('errormsg', $error);
$view->setParam('plain', $plain);