diff --git a/inc/inc.ClassViewCommon.php b/inc/inc.ClassViewCommon.php index c388291b2..e40cd9396 100644 --- a/inc/inc.ClassViewCommon.php +++ b/inc/inc.ClassViewCommon.php @@ -39,7 +39,10 @@ class SeedDMS_View_Common { $this->theme = $theme; $this->params = $params; $this->baseurl = ''; - $this->imgpath = '../views/'.$theme.'/images/'; + if(isset($params['settings'])) + $this->imgpath = $params['settings']->_httpRoot.'views/'.$theme.'/images/'; + else + $this->imgpath = '../views/'.$theme.'/images/'; } public function __invoke($get=array()) {