diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-08 20:59:40 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-08 20:59:40 -0700 |
commit | cbb6967405569606de3b67e1f1dcde2ed8d6bb03 (patch) | |
tree | 38aad79f5b77fd7ad84fc7cbd06130998b7de4f0 /modules/gallery/controllers/upgrader.php | |
parent | 391a90e3cedd1cca7631f9a4d786c6c513b1dd48 (diff) |
Detect out-of-date modules and put up a message for site admins.
Fixes ticket #1353.
Diffstat (limited to 'modules/gallery/controllers/upgrader.php')
-rw-r--r-- | modules/gallery/controllers/upgrader.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/controllers/upgrader.php b/modules/gallery/controllers/upgrader.php index a3cfac48..6613d671 100644 --- a/modules/gallery/controllers/upgrader.php +++ b/modules/gallery/controllers/upgrader.php @@ -83,6 +83,9 @@ class Upgrader_Controller extends Controller { } } + // If the upgrade failed, this will get recreated + site_status::clear("upgrade_now"); + if (php_sapi_name() == "cli") { print "Upgrade complete\n"; } else { |