diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-08-28 21:57:54 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-08-28 21:58:28 -0700 |
commit | a08cd0db4e0b90bd625b8c4c608c41a4c41721d1 (patch) | |
tree | 5f1403acdfeb7ae8567b4bab6e652a192ceb42cd /modules/gallery/helpers/gallery_installer.php | |
parent | cf354f4d6279b9bd93a29ec288d01461e99093dd (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/helpers/gallery_installer.php')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 8 |
1 files changed, 7 insertions, 1 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() { |