diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-05 04:32:58 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-05 04:32:58 +0000 |
commit | f7560a7e8b15abdd549e4c59bbb39c6416844d9e (patch) | |
tree | 927d47849216757252b94fe94380f9f410720e1e | |
parent | ffb426be45f85e28c86b27352c0e89fea274671e (diff) |
Don't overwrite the version number of installed modules when searching for uninstalled modules.
-rw-r--r-- | core/controllers/welcome.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 1bf478b0..adce7443 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -137,7 +137,9 @@ class Welcome_Controller extends Template_Controller { } foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) { - $modules[basename(dirname(dirname($file)))] = 0; + if (empty($modules[basename(dirname(dirname($file)))])) { + $modules[basename(dirname(dirname($file)))] = 0; + } } } catch (Exception $e) { // The database may not be installed |