Generic index.php is now masking backtrace data
authorRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2009 20:50:43 +0000 (20:50 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 9 Dec 2009 20:50:43 +0000 (20:50 +0000)
index.php

index 979aa45f3d9642dd186e00ad7557abc7a78d540f..6f4585b3dcec4e5637396e6b1296da7fe7fe9368 100644 (file)
--- a/index.php
+++ b/index.php
@@ -111,7 +111,12 @@ final class ApplicationEntryPoint {
                                if (!isset($trace['file'])) $trace['file'] = __FILE__;
                                if (!isset($trace['line'])) $trace['line'] = __LINE__;
                                if (!isset($trace['args'])) $trace['args'] = array();
-                               $backtrace .= "<span class=\"backtrace_file\">".basename($trace['file'])."</span>:".$trace['line'].", <span class=\"backtrace_function\">".$trace['function']."(".count($trace['args']).")</span><br />";
+                               $backtrace .= sprintf("<span class=\"backtrace_file\">%s</span>:%d, <span class=\"backtrace_function\">%s(%d)</span><br />\n",
+                                       basename($trace['file']),
+                                       $trace['line'],
+                                       $trace['function'],
+                                       count($trace['args'])
+                               );
                        } // END - foreach
 
                        // Init application instance
@@ -198,7 +203,6 @@ final class ApplicationEntryPoint {
                // Include the application selector
                require($cfg->getConfigEntry('base_path') . 'inc/selector.php');
        } // END - main()
-
 } // END - class
 
 // Do not remove the following line: