diff options
author | Joe7 <jozsef.rnagy@site.hu> | 2011-01-03 20:28:54 +0100 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-03 11:38:21 -0800 |
commit | f364e8a96b47f0e4f674c8b36317fc80184b219a (patch) | |
tree | a8d4734945e8b97b62952f13b8b6ea9c0858a425 /modules/search/controllers | |
parent | cfaa62370ecbdb3badf4ab68bbefa7cfedaea154 (diff) |
Using array support introduced in 8295201adf948ea35f21f75801b7a8bf36c27569
Diffstat (limited to 'modules/search/controllers')
-rw-r--r-- | modules/search/controllers/search.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/search/controllers/search.php b/modules/search/controllers/search.php index e5894f30..733bc9f7 100644 --- a/modules/search/controllers/search.php +++ b/modules/search/controllers/search.php @@ -34,10 +34,10 @@ class Search_Controller extends Controller { $max_pages = max(ceil($count / $page_size), 1); $template = new Theme_View("page.html", "collection", "search"); - $template->set_global("page", $page); - $template->set_global("max_pages", $max_pages); - $template->set_global("page_size", $page_size); - $template->set_global("children_count", $count); + $template->set_global(array("page" => $page, + "max_pages" => $max_pages, + "page_size" => $page_size, + "children_count" => $count)); $template->content = new View("search.html"); $template->content->items = $result; |