mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
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:
parent
f24330740a
commit
d80d1be9de
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user