function DOCMAN_theme() { global $_DOCMAN, $savant_path; $this->name = $_DOCMAN->getCfg('icon_theme'); $this->path = $_DOCMAN->getPath('themes', $this->name); $conf = array(); $conf['template_path'] = $this->path . "templates/"; $conf['resource_path'] = $savant_path . "Savant2/"; parent::Savant2($conf); //set the theme variables $this->_setConfig(); //set the language $this->_setLanguage(); }
function DOCMAN_theme() { global $_DOCMAN, $savant_path; $this->name = $_DOCMAN->getCfg('icon_theme'); if (!$this->name) { throw new Exception('Theme name not found'); } $this->path = $_DOCMAN->getPath('themes', $this->name); $conf = array(); $conf['template_path'] = $this->path . "templates" . DS; $conf['resource_path'] = $savant_path . "Savant2" . DS; parent::Savant2($conf); //set the theme variables $this->_setConfig(); //set the language $this->_setLanguage(); }