Skip to content
Snippets Groups Projects
Commit f5c90d14 authored by Tim Otten's avatar Tim Otten
Browse files

Merge pull request #949 from totten/gencode-version

GenCode:
parents e97466a5 f5037c30
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ Alternatively you can get a version of CiviCRM that matches your PHP version
exit();
}
$this->generateTemplateVersion($argVersion);
$this->generateTemplateVersion($db_version);
$this->setupCms($argCms, $db_version);
......@@ -355,16 +355,8 @@ Alternatively you can get a version of CiviCRM that matches your PHP version
$this->beautifier->save();
}
function generateTemplateVersion($argVersion) {
// add the Subversion revision to templates
// use svnversion if the version was not specified explicitely on the commandline
if (isset($argVersion) and $argVersion != '') {
$svnversion = $argVersion;
}
else {
$svnversion = `svnversion .`;
}
file_put_contents($this->tplCodePath . "/CRM/common/version.tpl", $svnversion);
function generateTemplateVersion($dbVersion) {
file_put_contents($this->tplCodePath . "/CRM/common/version.tpl", $dbVersion);
}
function findLocales() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment