Commit | Line | Data |
---|---|---|
390bd31a TO |
1 | <?php |
2 | ||
3 | /** | |
4 | * Generate configuration files | |
5 | */ | |
6 | class CRM_Core_CodeGen_Version extends CRM_Core_CodeGen_BaseTask { | |
7 | public function run() { | |
8 | echo "Generating civicrm-version file\n"; | |
9 | ||
10 | file_put_contents($this->config->tplCodePath . "/CRM/common/version.tpl", $this->config->db_version); | |
11 | ||
12 | $template = new CRM_Core_CodeGen_Util_Template('php'); | |
13 | $template->assign('db_version', $this->config->db_version); | |
14 | $template->assign('cms', ucwords($this->config->cms)); | |
15 | $template->run('civicrm_version.tpl', $this->config->phpCodePath . "civicrm-version.php"); | |
16 | } | |
17 | ||
18 | } |