From: Roland Häder Date: Tue, 22 Sep 2009 00:21:27 +0000 (+0000) Subject: Fix for parser error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30c4ffdadae5e5a2a39528fa9d8de4803055f123;p=mailer.git Fix for parser error --- diff --git a/inc/functions.php b/inc/functions.php index fb13419c1a..8d67bc491f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2752,7 +2752,7 @@ function generateAdminLink ($aid) { } // Compile characters which are allowed in URLs -function compileUriCode ($code, $simple=true) { +function compileUriCode ($code, $simple = true) { // Compile constants if (!$simple) $code = str_replace('{--', '".', str_replace('--}', '."', $code)); @@ -2929,8 +2929,8 @@ function DEBUG_LOG ($funcFile, $line, $message, $force=true) { $message = str_replace("\r", '', str_replace("\n", '', $message)); // Log this message away, we better don't call app_die() here to prevent an endless loop - $fp = fopen(constant('PATH') . 'inc/cache/debug.log', 'a') or die(__FUNCTION__, __LINE__, 'Cannot write logfile debug.log!'); - fwrite($fp, date('d.m.Y|H:i:s', time()) . '|' . getModule() . '|' . basename($funcFile) . '|' . $line . '|' . strip_tags($message)."\n"); + $fp = fopen(constant('PATH') . 'inc/cache/debug.log', 'a') or die(__FUNCTION__.'['.__LINE__.']: Cannot write logfile debug.log!'); + fwrite($fp, date('d.m.Y|H:i:s', time()) . '|' . getModule() . '|' . basename($funcFile) . '|' . $line . '|' . strip_tags($message) . "\n"); fclose($fp); } // END - if }