mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
set accessobject already in factory
This commit is contained in:
parent
43f57637e7
commit
a493e7645d
|
@ -45,7 +45,7 @@ class UI extends UI_Default {
|
|||
* @return object an object of a class implementing the view
|
||||
*/
|
||||
static function factory($theme, $class='', $params=array()) { /* {{{ */
|
||||
global $settings, $session, $EXT_CONF;
|
||||
global $settings, $dms, $user, $session, $EXT_CONF;
|
||||
if(!$class) {
|
||||
$class = 'Bootstrap';
|
||||
$classname = "SeedDMS_Bootstrap_Style";
|
||||
|
@ -105,6 +105,7 @@ class UI extends UI_Default {
|
|||
require($filename);
|
||||
$view = new $classname($params, $theme);
|
||||
/* Set some configuration parameters */
|
||||
$view->setParam('accessobject', new SeedDMS_AccessOperation($dms, $user, $settings));
|
||||
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
|
||||
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
|
||||
$view->setParam('class', $class);
|
||||
|
|
Loading…
Reference in New Issue
Block a user