mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: remove reference to sapphire in CMSVersion
This commit is contained in:
parent
effc654009
commit
befbd3e6a8
@ -1172,15 +1172,12 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
* @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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user