1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Merge pull request #202 from Satchitananda/master

Fixed smarty notices
This commit is contained in:
Mzhelskiy Maxim 2012-12-26 01:18:45 -08:00
commit 05d7fbaebc

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();
}
}
?>
?>