summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiwilson <wilsonpscheung@gmail.com>2009-06-29 22:40:13 -0700
committerhiwilson <wilsonpscheung@gmail.com>2009-06-29 22:40:13 -0700
commita9b27fb352490a48d4035966b8c8d463c62c7726 (patch)
tree85c2695c2344e94db3373e7f3ef78695bf3c27f3
parent21f228b1aed8b32dc9856add51f4ef8a3c7ced95 (diff)
Let the "Popular tags" sidebar block display on tag or search page.
-rw-r--r--modules/tag/helpers/tag_theme.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/tag/helpers/tag_theme.php b/modules/tag/helpers/tag_theme.php
index b48ad178..fe30354f 100644
--- a/modules/tag/helpers/tag_theme.php
+++ b/modules/tag/helpers/tag_theme.php
@@ -28,9 +28,6 @@ class tag_theme_Core {
static function sidebar_blocks($theme) {
// @todo this needs to be data driven
- if (!$theme->item()) {
- return;
- }
$block = new Block();
$block->css_id = "gTag";
@@ -38,7 +35,7 @@ class tag_theme_Core {
$block->content = new View("tag_block.html");
$block->content->cloud = tag::cloud(30);
- if ($theme->page_type() != "tag" && access::can("edit", $theme->item())) {
+ if ($theme->item() && $theme->page_type() != "tag" && access::can("edit", $theme->item())) {
$controller = new Tags_Controller();
$block->content->form = tag::get_add_form($theme->item());
} else {