opps, removing obsolete config.php deletion - this function is now used from differen...
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:29:10 +0000 (11:29 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:29:10 +0000 (11:29 +0000)
lib/installlib.php

index a1e8f0e..db577c5 100644 (file)
@@ -514,6 +514,7 @@ function install_cli_database(array $options, $interactive) {
 
     $CFG->version = '';
     $CFG->release = '';
+    $version = null;
 
     // read $version and $release
     require($CFG->dirroot.'/version.php');
@@ -534,8 +535,6 @@ function install_cli_database(array $options, $interactive) {
             list($info, $report) = $error;
             echo "!! $info !!\n$report\n\n";
         }
-        //remove config.php, we do not want half finished upgrades!
-        unlink($configfile);
         exit(1);
     }