summaryrefslogtreecommitdiff
path: root/modules/tag/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2011-04-22 16:15:56 -0700
committerTim Almdal <tnalmdal@shaw.ca>2011-04-22 16:15:56 -0700
commitb07bc1af082ea097adb77d2e78e69af3e20d8d29 (patch)
tree3905cc1c03c3494c353e072e9ccfaa57f05e0185 /modules/tag/controllers
parent151d5c3f354894d63e334e43cb79917ef3017568 (diff)
Allow the administrator to set the number of tags to display in the cloud via the advanced settings. Fixes ticket #1649.
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/tags.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php
index fe6d747b..bf41c4df 100644
--- a/modules/tag/controllers/tags.php
+++ b/modules/tag/controllers/tags.php
@@ -22,7 +22,8 @@ class Tags_Controller extends Controller {
// Far from perfection, but at least require view permission for the root album
$album = ORM::factory("item", 1);
access::required("view", $album);
- print tag::cloud(30);
+
+ print tag::cloud(module::get_var("tag", "tag_cloud_size", 30));
}
public function create($item_id) {