Browse Source

Avoid problems with wrong configured server variables

pull/2164/head
Michael Vogel 6 years ago
parent
commit
57576e09ed
  1. 6
      boot.php

6
boot.php

@ -635,13 +635,13 @@ if(! class_exists('App')) {
$basepath = get_config("system", "basepath");
if ($basepath == "")
$basepath = $_SERVER["DOCUMENT_ROOT"];
$basepath = dirname(__FILE__);
if ($basepath == "")
$basepath = $_SERVER["PWD"];
$basepath = $_SERVER["DOCUMENT_ROOT"];
if ($basepath == "")
$basepath = dirname(__FILE__);
$basepath = $_SERVER["PWD"];
return($basepath);
}

Loading…
Cancel
Save