diff --git a/boot.php b/boot.php index 0f4cacb5fd..6759e805f2 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); }