1
0

only show relative dir

This commit is contained in:
Garvin Hicking
2015-03-13 15:02:40 +01:00
parent 7c7dc58665
commit 8f88998c90
2 changed files with 4 additions and 2 deletions

@ -39,6 +39,8 @@ Version 2.1 ()
Version 2.0.2 () Version 2.0.2 ()
------------------------------------------------------------------------ ------------------------------------------------------------------------
* Show debugging .tpl file information with relative directory only
* fix wrong upgrade removal of dead files with 2.0.1 update * fix wrong upgrade removal of dead files with 2.0.1 update

@ -1213,9 +1213,9 @@ function serendipity_smarty_show($template, $data = null, $debugtype = null, $de
$tplfile = serendipity_getTemplateFile($template, 'serendipityPath'); $tplfile = serendipity_getTemplateFile($template, 'serendipityPath');
if ($debug !== null) { if ($debug !== null) {
if ($debugtype == "HTML") { if ($debugtype == "HTML") {
$debug = "<!-- Dynamically fetched " . htmlspecialchars($tplfile) . " on " . date('Y-m-d H:i') . ", called from: " . $debug . " -->\n"; $debug = "<!-- Dynamically fetched " . htmlspecialchars(str_replace($serendipity['serendipityPath'], '', $tplfile)) . " on " . date('Y-m-d H:i') . ", called from: " . $debug . " -->\n";
} else { } else {
$debug = "/* Dynamically fetched " . htmlspecialchars($tplfile) . " on " . date('Y-m-d H:i') . ", called from: " . $debug . " */\n"; $debug = "/* Dynamically fetched " . htmlspecialchars(str_replace($serendipity['serendipityPath'], '', $tplfile)) . " on " . date('Y-m-d H:i') . ", called from: " . $debug . " */\n";
} }
} }