summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 01:08:16 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 01:08:16 +0000
commitf011971adedf5f09092b0a2772ad18a9f9f31a70 (patch)
tree487bd271730d4ae911affe026c16c1bf3389e2a4
parent667d79c705f83b9752e30553f94a94cba25227a2 (diff)
Further simplify the code.
-rw-r--r--core/controllers/welcome.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index 5a6d99f3..1bf478b0 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -135,16 +135,13 @@ class Welcome_Controller extends Template_Controller {
foreach ($installed as $installed_module) {
$modules[$installed_module->name] = $installed_module->version;
}
- } catch (Exception $e) {
- // The database may not be installed
- }
- if (!empty($modules["core"])) {
foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) {
$modules[basename(dirname(dirname($file)))] = 0;
}
+ } catch (Exception $e) {
+ // The database may not be installed
}
-
return $modules;
}
}