Move the code that clears the upgrade_check site status message to the

upgrader so that it's cleared any time we run an upgrade.  Part of
This commit is contained in:
Bharat Mediratta
2011-01-17 20:03:11 -08:00
parent 2b190c0559
commit 45caba09f8
2 changed files with 3 additions and 3 deletions

View File

@@ -94,6 +94,9 @@ class Upgrader_Controller extends Controller {
// If the upgrade failed, this will get recreated
site_status::clear("upgrade_now");
// Clear any upgrade check strings, we are probably up to date.
site_status::clear("upgrade_check");
if (php_sapi_name() == "cli") {
if ($failed) {
print "Upgrade completed ** WITH FAILURES **\n";

View File

@@ -677,9 +677,6 @@ class gallery_installer {
module::set_var("gallery", "upgrade_checker_auto_enabled", true);
module::set_version("gallery", $version = 46);
}
// Clear any upgrade check strings, we are probably up to date.
site_status::clear("upgrade_check");
}
static function uninstall() {