summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_installer.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-29 16:26:27 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-29 16:27:32 -0700
commit4c8445852d0657d8c598d38096852b49e4672638 (patch)
tree5aad3abee73329babc069046f0288895025da0b4 /modules/gallery/helpers/gallery_installer.php
parent24b511b44a0f2a7bce575a6dad9c88f9ef257648 (diff)
Bump gallery module to v36 and add a favicon_url variable, which we
expose in Admin > Appearance > Theme Options and defaults to lib/images/favicon.ico. Thix fixes ticket #1312.
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r--modules/gallery/helpers/gallery_installer.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 9aabf22b..d1bfa656 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -301,7 +301,8 @@ class gallery_installer {
module::set_var("gallery", "admin_area_timeout", 90 * 60);
module::set_var("gallery", "maintenance_mode", 0);
module::set_var("gallery", "visible_title_length", 15);
- module::set_version("gallery", 35);
+ module::set_var("gallery", "favicon_url", "lib/images/favicon.ico");
+ module::set_version("gallery", 36);
}
static function upgrade($version) {
@@ -590,6 +591,11 @@ class gallery_installer {
module::set_var("gallery", "visible_title_length", 15);
module::set_version("gallery", $version = 35);
}
+
+ if ($version == 35) {
+ module::set_var("gallery", "favicon_url", "lib/images/favicon.ico");
+ module::set_version("gallery", $version = 36);
+ }
}
static function uninstall() {