index 692de5018939e39789db1730367fdfbd3090d120..9eeda233ac613ce7f8582dc6533b4e90e067585d 100644 (file)
/* Do Smarty setup */
$this->Smarty= new Smarty;
- $this->Smarty->template_dir= $BASE_DIR.'/templates/';
+ $this->Smarty->template_dir= BASE_DIR.'/templates/';
$this->Smarty->caching= $config->getValue('cache-templates', FALSE);
$this->Smarty->php_handling= SMARTY_PHP_REMOVE;
/* Check if our template directory is accessible */
if (!(is_dir($this->Smarty->compile_dir) && is_writable($this->Smarty->compile_dir))){
- throw new ViewportControllerException(sprintf(_("Directory '%s' specified as compile-directory is not accessible!"), $smarty->compile_dir));
+ throw new ViewportControllerException(sprintf(_("Directory '%s' specified as compile-directory is not accessible!"), $this->Smarty->compile_dir));
}
/* Check for old files in compile directory */
private function cleanSmartyCompileDir() {
#TODO: Clean compile dir
- echo "TODO: clean compile dir\n";
}
/* Get the browser language if */
$lang= Utils::getBrowserLanguage();
if ($this->language != $lang){
- echo "Emit EventObject for changed language\n";
+ #TODO: Emit EventObject for changed language
$this->language= $lang;
}