mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Restored original behaviour in CMSVersion() conditional
This commit is contained in:
parent
38046a5bb7
commit
3c947debfa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user