Dont auto-guess pathPrefix

pull/2562/head
Isaac Connor 2018-11-23 13:54:14 -05:00
parent 7ad19be0d7
commit 19f3cce41f
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,8 @@ class Server {
if ( isset($this->{'PathPrefix'}) and $this->{'PathPrefix'} ) {
return $this->{'PathPrefix'};
}
return $_SERVER['PHP_SELF'];
return '';
//return $_SERVER['PHP_SELF'];
}
public function __call($fn, array $args){

View File

@ -48,7 +48,7 @@ var maxDisplayEvents = <?php echo 2 * MAX_EVENTS ?>;
var monitorId = <?php echo $monitor->Id() ?>;
var monitorWidth = <?php echo $monitor->Width() ?>;
var monitorHeight = <?php echo $monitor->Height() ?>;
var monitorUrl = '<?php echo $monitor->Url(); ?>';
var monitorUrl = '<?php echo $monitor->Url(); ?>/index.php';
var monitorType = '<?php echo ( $monitor->Type() ) ?>';
var monitorRefresh = '<?php echo ( $monitor->Refresh() ) ?>';