diff --git a/code/web/public_php/login/class/connection_handler.php b/code/web/public_php/login/class/connection_handler.php index bbe7aaf7f..7124cf94f 100644 --- a/code/web/public_php/login/class/connection_handler.php +++ b/code/web/public_php/login/class/connection_handler.php @@ -1,19 +1,12 @@ logStr(str_replace("\n", '\n', $buffer)); - } - return $buffer; // sent to output - } - - /** - * Callback called on error - */ - public function err_callback($errno, $errmsg, $filename, $linenum, $vars) - { - $logFile = new CWwwLog(); - $logFile->logStr('PHP ERROR/$errno $errmsg ($filename:$linenum)'); - $logFile->logStr('PHP CALLSTACK/' . print_r(debug_backtrace(), true)); - } - /** * @param string * the password to extract the salt from. diff --git a/code/web/public_php/login/r2_login.php b/code/web/public_php/login/r2_login.php index 936b3209a..834d94f35 100755 --- a/code/web/public_php/login/r2_login.php +++ b/code/web/public_php/login/r2_login.php @@ -1,19 +1,11 @@ logStr(str_replace("\n", '\n', $buffer)); + } + return $buffer; // sent to output +} + +/** + * Callback called on error + */ +function err_callback($errno, $errmsg, $filename, $linenum, $vars) +{ + $logFile = new CWwwLog(); + $logFile->logStr('PHP ERROR/$errno $errmsg ($filename:$linenum)'); + $logFile->logStr('PHP CALLSTACK/' . print_r(debug_backtrace(), true)); +}