Use an absolute url for the upgrader link. Also, clear the upgrade_now

site status message every time we go to Admin > Modules.
Fixes #1695.
This commit is contained in:
Bharat Mediratta
2011-04-23 13:04:23 -07:00
parent 1da0551b3c
commit c1df782a75
2 changed files with 4 additions and 4 deletions

View File

@@ -19,6 +19,9 @@
*/
class Admin_Modules_Controller extends Admin_Controller {
public function index() {
// If modules need upgrading, this will get recreated in module::available()
site_status::clear("upgrade_now");
$view = new Admin_View("admin.html");
$view->page_title = t("Modules");
$view->content = new View("admin_modules.html");
@@ -103,9 +106,6 @@ class Admin_Modules_Controller extends Admin_Controller {
module::event("module_change", $changes);
// If modules need upgrading, this will get recreated
site_status::clear("upgrade_now");
// @todo this type of collation is questionable from an i18n perspective
if ($activated_names) {
message::success(t("Activated: %names", array("names" => join(", ", $activated_names))));