mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
- 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/trunk@18667 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -98,7 +98,12 @@ if (isset($page['is_homepage']) and $page['is_homepage'])
|
||||
}
|
||||
else
|
||||
{
|
||||
$canonical_url = duplicate_index_url();
|
||||
$start = $page['nb_image_page'] * round($page['start'] / $page['nb_image_page']);
|
||||
if ($start>0 && $start >= count($page['items']) )
|
||||
{
|
||||
$start -= $page['nb_image_page'];
|
||||
}
|
||||
$canonical_url = duplicate_index_url(array('start' => $start));
|
||||
}
|
||||
$template->assign('U_CANONICAL', $canonical_url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user