use _httpRoot for imagepath

This commit is contained in:
Uwe Steinmann 2021-07-05 16:29:30 +02:00
parent 00bbfff34d
commit 6fccfd1d18

View File

@ -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()) {