From: Tim Düsterhus Date: Fri, 15 Apr 2016 16:59:37 +0000 (+0200) Subject: Make $logFile in logThrowable a reference X-Git-Tag: 3.0.0_Beta_1~1897 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76e90abcb39f364dcc1b7037fb651ae118d883ae;p=GitHub%2FWoltLab%2FWCF.git Make $logFile in logThrowable a reference see also: 8891d4b9315f788d18fcb4a0dafe660b2521c7de --- diff --git a/wcfsetup/install/files/lib/core.functions.php b/wcfsetup/install/files/lib/core.functions.php index 15b18543f6..d314cbdf48 100644 --- a/wcfsetup/install/files/lib/core.functions.php +++ b/wcfsetup/install/files/lib/core.functions.php @@ -49,7 +49,7 @@ namespace wcf\functions\exception { use wcf\util\FileUtil; use wcf\util\StringUtil; - function logThrowable($e, $logFile = null) { + function logThrowable($e, &$logFile = null) { if ($logFile === null) $logFile = WCF_DIR . 'log/' . gmdate('Y-m-d', TIME_NOW) . '.txt'; touch($logFile); @@ -97,7 +97,7 @@ namespace wcf\functions\exception { } function printThrowable($e) { - $exceptionID = logThrowable($e); + $exceptionID = logThrowable($e, $logFile); $exceptionTitle = $exceptionSubtitle = $exceptionExplanation = ''; $logFile = sanitizePath($logFile);