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

GenCode:

 * Remove shell_exec dependency.
 * In the web footer, report the same version number used everywhere else
parent 5f132338
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.
Please register or to comment