Skip to content

Commit

Permalink
XAMPP - default display_errors prevents the use of $developer=true
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Aug 6, 2024
1 parent 8cc0530 commit 9e4a92e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
$development = false;

ini_set('error_reporting', 0);
ini_set('display_errors', 0);
if ($development) {
ini_set('error_reporting', E_ALL);
// Change this to where you want the XOT log file to go;
Expand Down Expand Up @@ -213,6 +214,9 @@
if ($port == 80 || $port == 443 || isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
$port = '';
}
else{
$port = ':' . $port;
}

// get subdir from $xerte_toolkits_site->site_url path stored in Db
$subdir = '/';
Expand All @@ -222,6 +226,10 @@
$subdir = substr($xerte_toolkits_site->site_url, $subdir_pos);
}
$site_url = $scheme . $host . $port . $subdir;
$check_url = @file_get_contents($site_url . 'version.txt');
if ($check_url === false) {
$site_url = $xerte_toolkits_site->site_url;
}

$xerte_toolkits_site->site_url = $site_url;

Expand Down

0 comments on commit 9e4a92e

Please sign in to comment.