mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: look for framework version in framework path rather than CMS path
This commit is contained in:
parent
a0e320d9f2
commit
4718f14ecc
@ -1164,13 +1164,15 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
*/
|
*/
|
||||||
public function CMSVersion() {
|
public function CMSVersion() {
|
||||||
$cmsVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
|
$cmsVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
|
||||||
if(!$cmsVersion) $cmsVersion = _t('LeftAndMain.VersionUnknown');
|
if(!$cmsVersion) $cmsVersion = _t('LeftAndMain.VersionUnknown', 'Unknown');
|
||||||
$sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
|
|
||||||
if(!$sapphireVersion) $sapphireVersion = _t('LeftAndMain.VersionUnknown');
|
$frameworkVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version');
|
||||||
|
if(!$frameworkVersion) $frameworkVersion = _t('LeftAndMain.VersionUnknown', 'Unknown');
|
||||||
|
|
||||||
return sprintf(
|
return sprintf(
|
||||||
"cms: %s, framework: %s",
|
"CMS: %s Framework: %s",
|
||||||
$cmsVersion,
|
$cmsVersion,
|
||||||
$sapphireVersion
|
$frameworkVersion
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user