diff --git a/boot.php b/boot.php index 6759e805f2..05a334a1fa 100644 --- a/boot.php +++ b/boot.php @@ -634,15 +634,15 @@ if(! class_exists('App')) { $basepath = get_config("system", "basepath"); + if ($basepath == "") + $basepath = dirname(__FILE__); + if ($basepath == "") $basepath = $_SERVER["DOCUMENT_ROOT"]; if ($basepath == "") $basepath = $_SERVER["PWD"]; - if ($basepath == "") - $basepath = dirname(__FILE__); - return($basepath); }