mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 01:14:24 +03:00
fix hacker console, Issue #53
This commit is contained in:
parent
463fd3bb5e
commit
d9d8dce7ad
|
@ -53,14 +53,12 @@ function isAjaxRequest() {
|
|||
/**
|
||||
* функция вывода отладочных сообщений через "хакерскую" консоль Дмитрия Котерова
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
function dump($msg) {
|
||||
if (Config::Get('sys.logs.hacker_console') && !isAjaxRequest()) {
|
||||
call_user_func(array('Debug_HackerConsole_Main', 'out'), $msg);
|
||||
} else {
|
||||
//var_dump($msg);
|
||||
|
|
Loading…
Reference in a new issue