mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 01:09:19 -04:00
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:
@@ -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";
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user