Skip to content

Commit

Permalink
Fix Console unsaved changes bug when codeprefix is designed.
Browse files Browse the repository at this point in the history
Thanks to @Toutouwai
  • Loading branch information
adrianbj committed Feb 4, 2025
1 parent 0f9df85 commit d54b186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.26.63',
'version' => '4.26.64',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
2 changes: 1 addition & 1 deletion panels/ConsolePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getPanel() {
$snippetFileName = $snippetFile->getPathname();
$snippets[$i]['name'] = pathinfo($snippetFileName, PATHINFO_BASENAME);
$snippets[$i]['filename'] = $snippetFileName;
$snippets[$i]['code'] = file_get_contents($snippetFileName);
$snippets[$i]['code'] = str_replace(\TracyDebugger::getDataValue('consoleCodePrefix'), '', file_get_contents($snippetFileName));
$snippets[$i]['modified'] = filemtime($snippetFileName);
$i++;
}
Expand Down

0 comments on commit d54b186

Please sign in to comment.