X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FSystem.php;h=e2d72f5303244d9eb8c031c82696994bedd3f47f;hb=c593b256d418fd8bc322ffd44efb9910a036cdd3;hp=a253b091c047da1afb7db6ade020221cbc73312d;hpb=06640b27e4f05ea6aa7829aec9466cd1c51ab694;p=civicrm-core.git diff --git a/CRM/Utils/System.php b/CRM/Utils/System.php index a253b091c0..e2d72f5303 100644 --- a/CRM/Utils/System.php +++ b/CRM/Utils/System.php @@ -1,9 +1,9 @@ 'redirect', 'userContext' => $url, @@ -1074,25 +1082,12 @@ class CRM_Utils_System { if (!$version) { $verFile = implode(DIRECTORY_SEPARATOR, - array(dirname(__FILE__), '..', '..', 'civicrm-version.php') + array(dirname(__FILE__), '..', '..', 'xml', 'version.xml') ); if (file_exists($verFile)) { - require_once $verFile; - if (function_exists('civicrmVersion')) { - $info = civicrmVersion(); - $version = $info['version']; - } - } - else { - // svn installs don't have version.txt by default. In that case version.xml should help - - $verFile = implode(DIRECTORY_SEPARATOR, - array(dirname(__FILE__), '..', '..', 'xml', 'version.xml') - ); - if (file_exists($verFile)) { - $str = file_get_contents($verFile); - $xmlObj = simplexml_load_string($str); - $version = (string) $xmlObj->version_no; - } + $str = file_get_contents($verFile); + $xmlObj = simplexml_load_string($str); + $version = (string) $xmlObj->version_no; } // pattern check