ソースを参照

#4694 add feedback during installation

Laurent Opprecht 13 年 前
コミット
3936d8850e
1 ファイル変更1 行追加2 行削除
  1. 1 2
      main/inc/lib/log.class.php

+ 1 - 2
main/inc/lib/log.class.php

@@ -106,8 +106,7 @@ class Log
          */
         if (!isset($context['file'])) {
             $trace = debug_backtrace();
-            array_shift($trace);
-            $trace = reset($trace);
+            $trace = $trace[1];
             $context['file'] = $trace['file'];
             $context['line'] = $trace['line'];
         }