Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed CMSMain->CMSVersion(), using LeftAndMain instead

Implementation got more complex (see #289),
including composer.lock file support. So trying to to duplicate too much.
  • Loading branch information...
commit 0f8d7a0aa4b68f9dfee3257861c17a751102b938 1 parent 306b0d7
@chillu chillu authored
Showing with 0 additions and 21 deletions.
  1. +0 −21 code/controllers/CMSMain.php
View
21 code/controllers/CMSMain.php
@@ -1300,27 +1300,6 @@ public function duplicatewithchildren($request) {
}
}
- /**
- * Return the version number of this application.
- * Uses the subversion path information in <mymodule>/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(
Please sign in to comment.
Something went wrong with that request. Please try again.