From bb6c47e498341abe31aaba82b46f962b89790b28 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Thu, 26 Apr 2018 11:07:02 +0530 Subject: [PATCH] additional fix --- civicrm-version.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/civicrm-version.php b/civicrm-version.php index fccb2033ee..aec485b873 100755 --- a/civicrm-version.php +++ b/civicrm-version.php @@ -86,6 +86,9 @@ class Version { * Get the current path */ public static function getSearchDir() { + if ($_SERVER['SCRIPT_FILENAME']) { + return dirname($_SERVER['SCRIPT_FILENAME']); + } // getenv('PWD') works better with symlinked source trees, but it's // not portable to Windows. if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { -- 2.25.1