mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 10:30:42 +00:00
get dms and user from params in factory()
This commit is contained in:
parent
e755423534
commit
5db84c0564
|
|
@ -45,7 +45,7 @@ class UI extends UI_Default {
|
||||||
* @return object an object of a class implementing the view
|
* @return object an object of a class implementing the view
|
||||||
*/
|
*/
|
||||||
static public function factory($theme, $class='', $params=array()) { /* {{{ */
|
static public function factory($theme, $class='', $params=array()) { /* {{{ */
|
||||||
foreach(['settings', 'session', 'extmgr', 'request', 'logger', 'notifier', 'fulltextservice', 'translator'] as $vn) {
|
foreach(['settings', 'dms', 'user', 'session', 'extmgr', 'request', 'logger', 'notifier', 'fulltextservice', 'translator'] as $vn) {
|
||||||
if(isset($params[$vn]))
|
if(isset($params[$vn]))
|
||||||
${$vn} = $params[$vn];
|
${$vn} = $params[$vn];
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user