Browse Source

Avoid problems with wrong configured server variables

pull/2164/head
Michael Vogel 5 years ago
parent
commit
57576e09ed
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      boot.php

+ 3
- 3
boot.php View File

@ -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