MDL-38382: Update will show minor number with leading zeros (if any)
authorRajesh Taneja <rajesh@moodle.com>
Fri, 8 Mar 2013 02:14:02 +0000 (10:14 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Fri, 8 Mar 2013 02:14:02 +0000 (10:14 +0800)
admin/index.php

index d75e364..35cbdaf 100644 (file)
@@ -208,8 +208,8 @@ if ($version > $CFG->version) {  // upgrade
 
     if (empty($confirmupgrade)) {
         $a = new stdClass();
-        $a->oldversion = "$CFG->release ($CFG->version)";
-        $a->newversion = "$release ($version)";
+        $a->oldversion = "$CFG->release (".sprintf('%.2f', $CFG->version).")";
+        $a->newversion = "$release (".sprintf('%.2f', $version).")";
         $strdatabasechecking = get_string('databasechecking', '', $a);
 
         $PAGE->set_title($stradministration);