X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_ViewportController.inc;h=9eeda233ac613ce7f8582dc6533b4e90e067585d;hb=356897aedf8d2dee40316857f40813072dc33ea5;hp=692de5018939e39789db1730367fdfbd3090d120;hpb=84a198e3d54226e48c45176b1f2009e576339d38;p=gosa.git diff --git a/include/class_ViewportController.inc b/include/class_ViewportController.inc index 692de5018..9eeda233a 100644 --- a/include/class_ViewportController.inc +++ b/include/class_ViewportController.inc @@ -55,7 +55,7 @@ class ViewportController { /* 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; @@ -64,7 +64,7 @@ class ViewportController { /* 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 */ @@ -74,7 +74,6 @@ class ViewportController { private function cleanSmartyCompileDir() { #TODO: Clean compile dir - echo "TODO: clean compile dir\n"; } @@ -83,7 +82,7 @@ class ViewportController { /* 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; }