Просмотр исходного кода

fixed Debug trace links to open file for Exception

Piotr Labudda 8 лет назад
Родитель
Сommit
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 [