Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR: remove reference to sapphire in CMSVersion

  • Loading branch information...
commit befbd3e6a8f99d33d498de9243d61b0b69f964ab 1 parent effc654
@wilr wilr authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 admin/code/LeftAndMain.php
View
13 admin/code/LeftAndMain.php
@@ -1172,15 +1172,12 @@ public function PreviewLink() {
* @return string
*/
public function CMSVersion() {
- if(defined('CMS_PATH') && file_exists(CMS_PATH . '/silverstripe_version')) {
- $sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
- } else {
- $sapphireVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
- }
- if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown', 'unknown');
+ $frameworkVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
+ if(!$frameworkVersion) $frameworkVersion = _t('LeftAndMain.VersionUnknown', 'Unknown');
+
return sprintf(
- "SilverStripe: %s",
- $sapphireVersion
+ "Framework: %s",
+ $frameworkVersion
);
}

0 comments on commit befbd3e

Please sign in to comment.
Something went wrong with that request. Please try again.