diff --git a/boot.php b/boot.php index 0f4cacb5f..6759e805f 100644 --- a/boot.php +++ b/boot.php @@ -640,6 +640,9 @@ if(! class_exists('App')) { if ($basepath == "") $basepath = $_SERVER["PWD"]; + if ($basepath == "") + $basepath = dirname(__FILE__); + return($basepath); }