Skip to content

Commit

Permalink
Missing file from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Jul 2, 2024
1 parent 7aac62f commit 4b35ecd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions panels/ConsolePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function getTab() {

public function getPanel() {

$pwRoot = $this->wire('config')->urls->root;
$rootPath = $this->wire('config')->paths->root;
$tracyModuleUrl = $this->wire('config')->urls->TracyDebugger;
$inAdmin = \TracyDebugger::$inAdmin;
Expand Down Expand Up @@ -403,7 +402,7 @@ public function getPanel() {
var backupFilename = document.getElementById("backupFilename").value;
var accessTemplateVars = !this.inAdmin ? document.getElementById("accessTemplateVars").checked : "false";
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.send("tracyConsole=1&codeReturn=codeReturn&allowBluescreen="+allowBluescreen+"&dbBackup="+dbBackup+"&backupFilename="+backupFilename+"&accessTemplateVars="+accessTemplateVars+"&pid={$pid}&fid={$fid}&tid={$tid}&mid={$mid}&code="+encodeURIComponent(code));
Expand Down Expand Up @@ -445,7 +444,7 @@ public function getPanel() {
xmlhttp.getAllResponseHeaders();
}
};
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
xmlhttp.send("tracysnippets=1&snippetname=" + name);
Expand Down Expand Up @@ -502,7 +501,7 @@ public function getPanel() {
xmlhttp.getAllResponseHeaders();
}
};
xmlhttp.open("POST", "./", true);
xmlhttp.open("POST", "/", true);
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if(deleteSnippet) {
Expand Down Expand Up @@ -1076,7 +1075,7 @@ function loadFAIfNotAlreadyLoaded() {
if(!document.getElementById("fontAwesome")) {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "$pwRoot" + "wire/templates-admin/styles/font-awesome/css/font-awesome.min.css";
link.href = "/wire/templates-admin/styles/font-awesome/css/font-awesome.min.css";
document.getElementsByTagName("head")[0].appendChild(link);
}
}
Expand Down

0 comments on commit 4b35ecd

Please sign in to comment.