Skip to content

Commit d54b186

Browse files
committed
Fix Console unsaved changes bug when codeprefix is designed.
Thanks to @Toutouwai
1 parent 0f9df85 commit d54b186

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TracyDebugger.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function getModuleInfo() {
2727
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
2828
'author' => 'Adrian Jones',
2929
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
30-
'version' => '4.26.63',
30+
'version' => '4.26.64',
3131
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
3232
'singular' => true,
3333
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',

panels/ConsolePanel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function getPanel() {
108108
$snippetFileName = $snippetFile->getPathname();
109109
$snippets[$i]['name'] = pathinfo($snippetFileName, PATHINFO_BASENAME);
110110
$snippets[$i]['filename'] = $snippetFileName;
111-
$snippets[$i]['code'] = file_get_contents($snippetFileName);
111+
$snippets[$i]['code'] = str_replace(\TracyDebugger::getDataValue('consoleCodePrefix'), '', file_get_contents($snippetFileName));
112112
$snippets[$i]['modified'] = filemtime($snippetFileName);
113113
$i++;
114114
}

0 commit comments

Comments
 (0)