Skip to content

Commit

Permalink
MINOR: remove reference to sapphire in CMSVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Apr 15, 2012
1 parent effc654 commit befbd3e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions admin/code/LeftAndMain.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1172,15 +1172,12 @@ public function PreviewLink() {
* @return string * @return string
*/ */
public function CMSVersion() { public function CMSVersion() {
if(defined('CMS_PATH') && file_exists(CMS_PATH . '/silverstripe_version')) { $frameworkVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
$sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version'); if(!$frameworkVersion) $frameworkVersion = _t('LeftAndMain.VersionUnknown', 'Unknown');
} else {
$sapphireVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
}
if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown', 'unknown');
return sprintf( return sprintf(
"SilverStripe: %s", "Framework: %s",
$sapphireVersion $frameworkVersion
); );
} }


Expand Down

0 comments on commit befbd3e

Please sign in to comment.