Jelajahi Sumber

Add update-configuration to upgrade process from 1.10 to 1.11 to update the version number

Yannick Warnier 7 tahun lalu
induk
melakukan
8d72c1be07
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      main/install/install.lib.php

+ 4 - 1
main/install/install.lib.php

@@ -3119,7 +3119,7 @@ function migrateSwitch($fromVersion, $manager, $processFiles = true)
                 $connection->executeQuery("UPDATE settings_current SET selected_value = '1.10.0' WHERE variable = 'chamilo_database_version'");
 
                 if ($processFiles) {
-
+                    $fromVersionShort = '1.9';
                     include __DIR__.'/update-files-1.9.0-1.10.0.inc.php';
                     // Only updates the configuration.inc.php with the new version
                     include __DIR__.'/update-configuration.inc.php';
@@ -3242,7 +3242,10 @@ function migrateSwitch($fromVersion, $manager, $processFiles = true)
                 $connection->executeQuery($sql);
 
                 if ($processFiles) {
+                    $fromVersionShort = '1.10';
                     include __DIR__.'/update-files-1.10.0-1.11.0.inc.php';
+                    // Only updates the configuration.inc.php with the new version
+                    include __DIR__.'/update-configuration.inc.php';
                 }
                 error_log('Upgrade 1.11.x process concluded!  ('.date('Y-m-d H:i:s').')');
             } else {