1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 11:40:48 +03:00

Update engine/modules/viewer/Viewer.class.php

Notice prevention fix
This commit is contained in:
Satchitananda 2012-12-26 15:34:21 +07:00
parent 85a3a86950
commit 2e27f6a6d1

View file

@ -205,7 +205,7 @@ class ModuleViewer extends Module {
* Создаём объект Smarty и устанавливаем необходимые параметры
*/
$this->oSmarty = $this->CreateSmartyObject();
$this->oSmarty->error_reporting=error_reporting()^E_NOTICE; // подавляем NOTICE ошибки - в этом вся прелесть смарти )
$this->oSmarty->error_reporting=error_reporting() & ~E_NOTICE; // подавляем NOTICE ошибки - в этом вся прелесть смарти )
$this->oSmarty->setTemplateDir(array_merge((array)Config::Get('path.smarty.template'),array(Config::Get('path.root.server').'/plugins/')));
$this->oSmarty->compile_check=Config::Get('smarty.compile_check');
/**
@ -1420,4 +1420,4 @@ class ModuleViewer extends Module {
$this->MenuVarAssign();
}
}
?>
?>