Revize 1240
Přidáno uživatelem Jiří Sviták před asi 13 roky(ů)
freenetis/branches/testing/application/libraries/MY_Controller.php | ||
---|---|---|
<?php defined('SYSPATH') or die('No direct script access.');
|
||
|
||
// BE CAREFUL HERE, CATCH EVERY EXCEPTION, OTHERWISE FREENETIS
|
||
// WITH JUST SMALL ERROR BECOMES COMPLETELY UNUSABLE
|
||
|
||
/*
|
||
* This file is part of open source system FreeNetIS
|
||
* and it is released under GPLv3 licence.
|
||
... | ... | |
if ($this->session->get('user_id', 0))
|
||
{
|
||
// for preprocessing some variable
|
||
$this->preprocessor();
|
||
|
||
// klimo, chytaj ty vyjimky
|
||
try
|
||
{
|
||
$this->preprocessor();
|
||
}
|
||
catch(Exception $e)
|
||
{
|
||
|
||
}
|
||
}
|
||
|
||
// Singleton instance
|
Také k dispozici: Unified diff
Pridano chytani vyjimek v MY_Controlleru. Tady se musi osetrit vse dukladne, jinak jedna chybka kompletne paralyzuje Freenetis. Viz:
"Chyba v SQL dotazu - Unknown column 'jr.approval_template_id' in 'on clause'
Chyba se vyskytla na řádku 374 souboru system/libraries/drivers/Database/Mysql.php."
konkretne v metode preprocessor() v MY_controlleru