diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 03:41:33 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 03:41:33 +0000 |
| commit | fe27bd1eb34efe95da6ffe8b6f6c137fe8a18306 (patch) | |
| tree | b89e04040d1a3fac5ce413505d5177b671e36db1 /core/views/welcome_syscheck.html.php | |
| parent | f7b4222e3fc725c2fc4db28840c151c1ebeb801c (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/views/welcome_syscheck.html.php')
| -rw-r--r-- | core/views/welcome_syscheck.html.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/core/views/welcome_syscheck.html.php b/core/views/welcome_syscheck.html.php index e46a179b..2908f8bd 100644 --- a/core/views/welcome_syscheck.html.php +++ b/core/views/welcome_syscheck.html.php @@ -18,7 +18,7 @@ <? if (empty($errors)): ?> <div class="block"> - <? if (empty($modules['core'])): ?> + <? if (!module::is_installed("core")): ?> <p class="success"> Your system is ready, but Gallery is not yet installed. </p> @@ -32,25 +32,28 @@ <table style="width: 400px"> <tr> <th align="left">Name</th> - <th align="left">Version</th> + <th align="left">Installed</th> + <th align="left">Available</th> <th align="left">Action</th> </tr> <tr class="core"> <td> <b> core </b> </td> - <td> <b> <?= $modules["core"] ?> </b> </td> + <td> <b> <?= module::get_version("core") ?> </b> </td> + <td> <b> <?= module::get_version("core") ?> </b> </td> <td> <b> <?= html::anchor("welcome/uninstall/core", "reset install") ?> </b> </td> </tr> - <? foreach ($modules as $module_name => $module_version): ?> + <? foreach ($modules as $module_name => $info): ?> <? if ($module_name == "core") continue; ?> <tr> <td><?= $module_name ?></td> - <td><?= empty($module_version) ? "" : $module_version ?></td> + <td><?= $info->installed ?></td> + <td><?= $info->version ?></td> <td> - <? if (empty($module_version)): ?> - <?= html::anchor("welcome/install/{$module_name}", "install") ?> + <? if ($info->installed): ?> + <?= html::anchor("welcome/uninstall/{$module_name}", "uninstall") ?> <? else: ?> - <?= html::anchor("welcome/uninstall/{$module_name}", "uninstall") ?> - <? endif; ?> + <?= html::anchor("welcome/install/{$module_name}", "install") ?> + <? endif ?> </td> </tr> <? endforeach; ?> |
