mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
pass selected category to view
This commit is contained in:
parent
e87fe8a808
commit
ae11964ca0
|
@ -30,11 +30,16 @@ if (!$user->isAdmin()) {
|
|||
|
||||
$categories = $dms->getDocumentCategories();
|
||||
|
||||
if(isset($_GET['categoryid']) && $_GET['categoryid']) {
|
||||
$selcat = $dms->getDocumentCategory($_GET['categoryid']);
|
||||
} else {
|
||||
$selcat = null;
|
||||
}
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'categories'=>$categories));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'categories'=>$categories, 'selcategory'=>$selcat));
|
||||
if($view) {
|
||||
$view->show();
|
||||
exit;
|
||||
$view($_GET);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user