From 85f2c6b6665360b60164330f88f89ad4d2a14f7f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 12 Mar 2009 16:06:13 +0000 Subject: Move the setting of the page title into the controller that is creating the page. Provide for a default page title if none is set. This allows less changes to page.html.php as different modules want to change the page title. --- modules/tag/controllers/tags.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/tag/controllers') diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php index bba1a751..515ddd59 100644 --- a/modules/tag/controllers/tags.php +++ b/modules/tag/controllers/tags.php @@ -33,6 +33,7 @@ class Tags_Controller extends REST_Controller { $template = new Theme_View("page.html", "tag"); $template->set_global('page_size', $page_size); + $template->set_global('page_title', t("Browse Tag::%name", array("name" => $tag->name))); $template->set_global('tag', $tag); $template->set_global('children', $tag->items($page_size, $offset)); $template->set_global('children_count', $children_count); -- cgit v1.2.3