Преглед изворни кода

#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'];
         }