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

fixed Debug trace links to open file for Exception

Piotr Labudda пре 8 година
родитељ
комит
4015d65499
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      SE/se-lib/Route/Debug.php

+ 1 - 0
SE/se-lib/Route/Debug.php

@@ -521,6 +521,7 @@ class Route_Debug extends RouteBase {
 		$trace = htmlspecialchars($dbg['trace']);
 		$trace = str_replace("\n", "\n<br>", $trace);
 		if ('#' === substr($trace, 0, 1)) $trace = "<br>{$trace}";
+		$trace = preg_replace('/<br>#(\d+\W+)([a-zA-Z0-9-_:\.\/]*)\((\d+)\):/', '<br>#${1}${2}:${3}:', $trace);
 		$trace = preg_replace('/<br>#(\d+\W+)([a-zA-Z0-9-_:\.\/]*):/', '#${1}<a href="http://localhost:9876/?project=se&file=${2}" target="_blank">${2}</a>:', $trace);
 		$trace = str_replace("\n<br>", "\n", $trace);
 		return [