summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-28 21:57:54 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-28 21:58:28 -0700
commita08cd0db4e0b90bd625b8c4c608c41a4c41721d1 (patch)
tree5f1403acdfeb7ae8567b4bab6e652a192ceb42cd /modules/gallery
parentcf354f4d6279b9bd93a29ec288d01461e99093dd (diff)
Add a "visible_title_length" variable that defaults to 15 and use that
as the max title length when we do title truncation in the wind theme. Bump the gallery module to 35.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/helpers/gallery_installer.php8
-rw-r--r--modules/gallery/module.info2
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php
index 569c5118..9aabf22b 100644
--- a/modules/gallery/helpers/gallery_installer.php
+++ b/modules/gallery/helpers/gallery_installer.php
@@ -300,7 +300,8 @@ class gallery_installer {
module::set_var("gallery", "simultaneous_upload_limit", 5);
module::set_var("gallery", "admin_area_timeout", 90 * 60);
module::set_var("gallery", "maintenance_mode", 0);
- module::set_version("gallery", 34);
+ module::set_var("gallery", "visible_title_length", 15);
+ module::set_version("gallery", 35);
}
static function upgrade($version) {
@@ -584,6 +585,11 @@ class gallery_installer {
$db->query("ALTER TABLE {access_caches} ADD KEY (`item_id`)");
module::set_version("gallery", $version = 34);
}
+
+ if ($version == 34) {
+ module::set_var("gallery", "visible_title_length", 15);
+ module::set_version("gallery", $version = 35);
+ }
}
static function uninstall() {
diff --git a/modules/gallery/module.info b/modules/gallery/module.info
index 084a0945..94942840 100644
--- a/modules/gallery/module.info
+++ b/modules/gallery/module.info
@@ -1,3 +1,3 @@
name = "Gallery 3"
description = "Gallery core application"
-version = 34
+version = 35