From 428169d06b493543855966d18a703127b2e7d22c Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 20 Feb 2018 16:03:27 +0530 Subject: [PATCH] Remove templates/CRM/common/version.tpl --- .gitignore | 1 - CRM/Core/CodeGen/Version.php | 2 -- xml/templates/civicrm_version.tpl | 7 +------ 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index d732acbd1f..f7aa94f659 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,6 @@ sql/civicrm_data.mysql sql/civicrm_drop.mysql sql/civicrm_navigation.mysql sql/civicrm_sample.mysql -templates/CRM/common/version.tpl tests/phpunit/CiviTest/CiviSeleniumSettings.php tests/phpunit/CiviTest/civicrm.settings.php tools/stats/config.php diff --git a/CRM/Core/CodeGen/Version.php b/CRM/Core/CodeGen/Version.php index eb7272edde..e98e38e888 100644 --- a/CRM/Core/CodeGen/Version.php +++ b/CRM/Core/CodeGen/Version.php @@ -7,8 +7,6 @@ class CRM_Core_CodeGen_Version extends CRM_Core_CodeGen_BaseTask { public function run() { echo "Generating civicrm-version file\n"; - file_put_contents($this->config->tplCodePath . "/CRM/common/version.tpl", $this->config->db_version); - $template = new CRM_Core_CodeGen_Util_Template('php'); $template->assign('db_version', $this->config->db_version); $template->assign('cms', ucwords($this->config->cms)); diff --git a/xml/templates/civicrm_version.tpl b/xml/templates/civicrm_version.tpl index 93a062ea78..a91c1c26ec 100644 --- a/xml/templates/civicrm_version.tpl +++ b/xml/templates/civicrm_version.tpl @@ -3,11 +3,6 @@ * Get the CiviCRM version. */ function civicrmVersion( ) {ldelim} -{include file="../../templates/CRM/common/version.tpl" assign=svnrevision} return array( 'version' => '{$db_version}', - 'cms' => '{$cms}', - 'revision' => '{$svnrevision}', ); + 'cms' => '{$cms}', ); {rdelim} - - - -- 2.25.1