Ignore:
Timestamp:
Oct 16, 2012, 9:59:08 PM (12 years ago)
Author:
rvelices
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/index.php

    r16988 r18668  
    100100else
    101101{
    102   $canonical_url = duplicate_index_url();
     102  $start = $page['nb_image_page'] * round($page['start'] / $page['nb_image_page']);
     103  if ($start>0 && $start >= count($page['items']) )
     104  {
     105    $start -= $page['nb_image_page'];
     106  }
     107  $canonical_url = duplicate_index_url(array('start' => $start));
    103108}
    104109$template->assign('U_CANONICAL', $canonical_url);
Note: See TracChangeset for help on using the changeset viewer.