Permalink
Browse files

MINOR: remove reference to sapphire in CMSVersion

  • Loading branch information...
1 parent effc654 commit befbd3e6a8f99d33d498de9243d61b0b69f964ab @wilr wilr committed Apr 15, 2012
Showing with 5 additions and 8 deletions.
  1. +5 −8 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.