diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index fbd395d27..43356803c 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -1217,7 +1217,11 @@ class LeftAndMain extends Controller { * @return string */ public function CMSVersion() { - $sapphireVersion = file_get_contents(BASE_PATH . '/cms/silverstripe_version'); + if(file_exists(CMS_PATH . '/silverstripe_version')) { + $sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version'); + } else { + $sapphireVersion = file_get_contents(SAPPHIRE_PATH . '/silverstripe_version'); + } if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown', 'unknown'); return sprintf( "sapphire: %s",