From afb83c772dee77b6699a0d51d46a1d7f5c5c5c66 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 16 Oct 2012 19:59:08 +0000 Subject: merge -r18667 from trunk - improved page title when viewing tags, fix canonical url on index page if the webmaster changes the default number of thumbnails per page git-svn-id: http://piwigo.org/svn/branches/2.4@18668 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 8450b4c82..6ee406344 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -434,8 +434,9 @@ $btrace_msg function get_tags_content_title() { global $page; - $title = count($page['tags']) > 1 ? l10n('Tag') : l10n('Tag'); - $title.= ' '; + $title = '' + . l10n( count($page['tags']) > 1 ? 'Tags' : 'Tag' ) + . ' '; for ($i=0; $i'; - $remove_url = null; - if (count($page['tags']) == 1) - { - $remove_url = get_root_url().'tags.php'; - } - else + if (count($page['tags']) > 2) { $other_tags = $page['tags']; unset($other_tags[$i]); @@ -468,15 +464,15 @@ function get_tags_content_title() 'tags' => $other_tags ) ); - } - $title.= - 'x' - .''; + $title.= + 'x' + .''; + } } return $title; } -- cgit v1.2.3