Skip to content
This repository
Browse code

MINOR: remove reference to sapphire in CMSVersion

  • Loading branch information...
commit befbd3e6a8f99d33d498de9243d61b0b69f964ab 1 parent effc654
Will Rossiter authored April 15, 2012

Showing 1 changed file with 5 additions and 8 deletions. Show diff stats Hide diff stats

  1. 13  admin/code/LeftAndMain.php
13  admin/code/LeftAndMain.php
@@ -1172,15 +1172,12 @@ public function PreviewLink() {
1172 1172
 	 * @return string
1173 1173
 	 */
1174 1174
 	public function CMSVersion() {
1175  
-		if(defined('CMS_PATH') && file_exists(CMS_PATH . '/silverstripe_version')) {
1176  
-			$sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
1177  
-		} else {
1178  
-			$sapphireVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
1179  
-		}
1180  
-		if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown', 'unknown');
  1175
+		$frameworkVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
  1176
+		if(!$frameworkVersion) $frameworkVersion = _t('LeftAndMain.VersionUnknown', 'Unknown');
  1177
+		
1181 1178
 		return sprintf(
1182  
-			"SilverStripe: %s",
1183  
-			$sapphireVersion
  1179
+			"Framework: %s",
  1180
+			$frameworkVersion
1184 1181
 		);
1185 1182
 	}
1186 1183
 	

0 notes on commit befbd3e

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