diff options
-rw-r--r-- | modules/tag/controllers/tags.php | 1 | ||||
-rw-r--r-- | themes/default/views/page.html.php | 9 |
2 files changed, 7 insertions, 3 deletions
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); diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php index d463af1b..6bbce475 100644 --- a/themes/default/views/page.html.php +++ b/themes/default/views/page.html.php @@ -5,10 +5,13 @@ <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title> - <? if ($page_type == "tag"): ?> - <?= t("Browse Tags") ?> :: <?= $tag->name ?> + <? if (empty($page_title)): ?> + <?= t("Browse Photos") ?> + <? if (!empty($item)): ?> + :: <?= $item->title ?> + <? endif ?> <? else: ?> - <?= t("Browse Photos") ?> :: <?= $item->title ?> + <?= $page_title ?> <? endif ?> </title> <link rel="shortcut icon" href="<?= $theme->url("images/favicon.ico") ?>" type="image/x-icon" /> |