switch to new way to invoke the view

This commit is contained in:
Uwe Steinmann 2015-12-14 09:47:51 +01:00
parent 7b6176341f
commit 3d7cd317e4
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ if (!$user->isAdmin()) {
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'contentdir'=>$settings->_contentDir));
if($view) {
$view->show();
$view($_GET);
exit;
}

View File

@ -30,7 +30,7 @@ $exclude = intval($_GET["exclude"]);
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'rootfolderid'=>$settings->_rootFolderID, 'form'=>$form, 'mode'=>$mode, 'exclude'=>$exclude));
if($view) {
$view->show();
$view($_GET);
exit;
}