summaryrefslogtreecommitdiff
path: root/core/controllers/welcome.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-22 03:41:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-22 03:41:33 +0000
commitfe27bd1eb34efe95da6ffe8b6f6c137fe8a18306 (patch)
treeb89e04040d1a3fac5ce413505d5177b671e36db1 /core/controllers/welcome.php
parentf7b4222e3fc725c2fc4db28840c151c1ebeb801c (diff)
Change the way that we track modules.
Each module now has a "module.info" file that has information about the module, including the core. We can display the installed version, and the version in the code. Also take a first shot at a modules admin page.
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r--core/controllers/welcome.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index d6c40850..b253f13f 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -425,12 +425,13 @@ class Welcome_Controller extends Template_Controller {
$modules = module::available();
try {
foreach (module::installed() as $installed_module) {
- $modules[$installed_module->name] = $installed_module->version;
+ $modules->$installed_module->version = $installed_module->version;
}
} catch (Exception $e) {
// The database may not be installed
}
ksort($modules);
+
return $modules;
}