diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-04-22 16:31:12 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-04-22 16:31:12 -0700 |
commit | 5b9c47ae6a39a650188d2653801631daf3f7519a (patch) | |
tree | b6720eaa5dd900c882041c9b4352ab0c499232f1 /modules/tag/helpers | |
parent | 5040adebb5c4e1e491fbb6c3b98783f5809020a3 (diff) | |
parent | e14b954f1857ffc122ff9d61833fee16f8c02c26 (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/tag/helpers')
-rw-r--r-- | modules/tag/helpers/tag_block.php | 2 | ||||
-rw-r--r-- | modules/tag/helpers/tag_installer.php | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/modules/tag/helpers/tag_block.php b/modules/tag/helpers/tag_block.php index 8df58a6e..69a9a1c4 100644 --- a/modules/tag/helpers/tag_block.php +++ b/modules/tag/helpers/tag_block.php @@ -30,7 +30,7 @@ class tag_block_Core { $block->css_id = "g-tag"; $block->title = t("Popular tags"); $block->content = new View("tag_block.html"); - $block->content->cloud = tag::cloud(30); + $block->content->cloud = tag::cloud(module::get_var("tag", "tag_cloud_size", 30)); if ($theme->item() && $theme->page_subtype() != "tag" && access::can("edit", $theme->item())) { $controller = new Tags_Controller(); diff --git a/modules/tag/helpers/tag_installer.php b/modules/tag/helpers/tag_installer.php index 16ad1239..66a78b91 100644 --- a/modules/tag/helpers/tag_installer.php +++ b/modules/tag/helpers/tag_installer.php @@ -36,7 +36,8 @@ class tag_installer { KEY(`tag_id`, `id`), KEY(`item_id`, `id`)) DEFAULT CHARSET=utf8;"); - module::set_version("tag", 2); + module::set_var("tag", "tag_cloud_size", 30); + module::set_version("tag", 3); } static function upgrade($version) { @@ -45,6 +46,10 @@ class tag_installer { $db->query("ALTER TABLE {tags} MODIFY COLUMN `name` VARCHAR(128)"); module::set_version("tag", $version = 2); } + if ($version == 2) { + module::set_var("tag", "tag_cloud_size", 30); + module::set_version("tag", $version = 3); + } } static function uninstall() { |