diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 11:17:27 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-16 11:17:27 +0000 |
commit | 6a2e8ec1ccf5a44e4983c10db55bd293e4a735d9 (patch) | |
tree | fcdfe2726ee23269278cd7abf01857ad0ff73fde /core | |
parent | ccc867f62902750a6632de66bc2c8cece1c95abb (diff) |
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.
Diffstat (limited to 'core')
-rw-r--r-- | core/libraries/Theme_View.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); |