summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-16 23:14:57 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-16 23:14:57 -0800
commit66bb496b6c2ad9c5341644b2e303e694078374d1 (patch)
tree7521d11a5eae53a2ea854e16588980ec91fa8447 /modules/gallery/helpers/gallery_installer.php
parent167f635a6ce5a71b35450844f9b5c647aa14bcc1 (diff)
If the logged in user is an admin and it's been more than 7 days since
the last check and auto upgrade checking is enabled, fire off an XHR to check for a possible upgrade. Finishes off #1605.
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 1ffe9bae..41ed1c6e 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -677,6 +677,9 @@ 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() {