1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-04 23:44:25 +03:00

fix hacker console, Issue #53

This commit is contained in:
Mzhelskiy Maxim 2011-12-12 10:47:48 +04:00
parent 463fd3bb5e
commit d9d8dce7ad

View file

@ -53,14 +53,12 @@ function isAjaxRequest() {
/**
* функция вывода отладочных сообщений через "хакерскую" консоль Дмитрия Котерова
*/
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
require_once Config::Get('path.root.server')."/engine/lib/external/HackerConsole/Main.php";
new Debug_HackerConsole_Main(true);
}
function dump($msg) {
function dump($msg) {
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
if (!class_exists('Debug_HackerConsole_Main')) {
require_once Config::Get('path.root.server')."/engine/lib/external/HackerConsole/Main.php";
new Debug_HackerConsole_Main(true);
}
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
} else {
//var_dump($msg);