From 6a2e8ec1ccf5a44e4983c10db55bd293e4a735d9 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 16 Mar 2009 11:17:27 +0000 Subject: Set $item and $tag in the Theme_View so that calls like $theme->item() which fall through to calling &View::__get() have an lvalue to return, else you can't return them by reference. Also, don't show sidebar blocks for pages that don't have an item so that the rss and tag modules don't break the search page. --- core/libraries/Theme_View.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/libraries') diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php index 797679fd..84d86b0b 100644 --- a/core/libraries/Theme_View.php +++ b/core/libraries/Theme_View.php @@ -36,6 +36,8 @@ class Theme_View_Core extends View { if (user::active()->admin) { $this->theme_name = Input::instance()->get("theme", $this->theme_name); } + $this->item = null; + $this->tag = null; $this->set_global("theme", $this); $this->set_global("user", user::active()); $this->set_global("page_type", $page_type); -- cgit v1.2.3