Browse files

MDL-28134 General : fixed CFG->branch notice during web/cli installation

  • Loading branch information...
1 parent ed01233 commit ad394588db002e3ef8a0727f960ac93c6e39bf7d @nebgor nebgor committed May 10, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 admin/index.php
  2. +3 −0 lib/installlib.php
View
3 admin/index.php
@@ -95,6 +95,9 @@
if (!isset($CFG->version)) {
$CFG->version = '';
}
+if (!isset($CFG->branch)) {
+ $CFG->branch = '';
+}
$version = null;
$release = null;
View
3 lib/installlib.php
@@ -409,8 +409,11 @@ function install_cli_database(array $options, $interactive) {
$CFG->version = '';
$CFG->release = '';
+ $CFG->branch = '';
+
$version = null;
$release = null;
+ $branch = null;
// read $version and $release
require($CFG->dirroot.'/version.php');

0 comments on commit ad39458

Please sign in to comment.