MINOR Restored original behaviour in CMSVersion() conditional

This commit is contained in:
Ingo Schommer 2012-02-01 18:52:58 +01:00
parent 38046a5bb7
commit 3c947debfa

View File

@ -1120,9 +1120,8 @@ JS;
*/
public function CMSVersion() {
$cmsVersion = file_get_contents(BASE_PATH . '/cms/silverstripe_version');
if(!$cmsVersion) $cmsVersion = _t('LeftAndMain.VersionUnknown');
$sapphireVersion = file_get_contents(BASE_PATH . '/sapphire/silverstripe_version');
if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown');
if(!$cmsVersion || !$sapphireVersion) return;
if($cmsVersion == $sapphireVersion) {
return $sapphireVersion;