From 0f8d7a0aa4b68f9dfee3257861c17a751102b938 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 28 Feb 2013 13:38:57 +0100 Subject: [PATCH] Removed CMSMain->CMSVersion(), using LeftAndMain instead Implementation got more complex (see https://github.com/silverstripe/silverstripe-cms/pull/289), including composer.lock file support. So trying to to duplicate too much. --- code/controllers/CMSMain.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 27cc5ca2..6ee6552f 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -1300,27 +1300,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr } } - /** - * Return the version number of this application. - * Uses the subversion path information in /silverstripe_version - * (automacially replaced by build scripts). - * - * @return string - */ - public function CMSVersion() { - $cmsVersion = file_get_contents(CMS_PATH . '/silverstripe_version'); - if(!$cmsVersion) $cmsVersion = _t('LeftAndMain.VersionUnknown', 'Unknown'); - - $frameworkVersion = file_get_contents(FRAMEWORK_PATH . '/silverstripe_version'); - if(!$frameworkVersion) $frameworkVersion = _t('LeftAndMain.VersionUnknown', 'Unknown'); - - return sprintf( - "CMS: %s Framework: %s", - $cmsVersion, - $frameworkVersion - ); - } - public function providePermissions() { $title = _t("CMSPagesController.MENUTITLE", LeftAndMain::menu_title_for_class('CMSPagesController')); return array(