summaryrefslogtreecommitdiff
path: root/core/controllers/welcome.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r--core/controllers/welcome.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index a75b225f..5cf6d7bf 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -346,16 +346,13 @@ class Welcome_Controller extends Template_Controller {
private function _read_modules() {
$modules = array();
try {
- $installed = ORM::factory("module")->find_all();
+ $installed = module::installed();
foreach ($installed as $installed_module) {
$modules[$installed_module->name] = $installed_module->version;
}
- foreach (glob(MODPATH . "*/helpers/*_installer.php") as $file) {
- if (empty($modules[basename(dirname(dirname($file)))])) {
- $modules[basename(dirname(dirname($file)))] = 0;
- }
- }
+ $modules = module::available($modules);
+
} catch (Exception $e) {
// The database may not be installed
}