From d7fc8d7c127ac64db4eb2d604f7c31512b3f7716 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 8 Dec 2015 08:17:29 +0100 Subject: [PATCH] Add an additional way to fetch the basepath (See pull request 2161) --- boot.php | 3 +++ 1 file changed, 3 insertions(+) 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); } -- 2.39.2