mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
improvement: got rid of num= _GET param in category.php (use only start=) so
that links to category for search engines are the same as in category pagination feature 77: standard navigation link : HTML Link types improvement: add go to first and last image buttons in picture page improvement: do not increase image hit in picture.php when rating, adding to favorites, caddie, ... improvement: show number of hits in most_visited (as best_rated shows the rate) git-svn-id: http://piwigo.org/svn/trunk@1014 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -64,18 +64,6 @@ else
|
||||
$page['start'] = $_GET['start'];
|
||||
}
|
||||
|
||||
// Sometimes, a "num" is provided in the URL. It is the number
|
||||
// of the picture to show. This picture must be in the thumbnails page.
|
||||
// We have to find the right $page['start'] that show the num picture
|
||||
// in this category
|
||||
if ( isset( $_GET['num'] )
|
||||
and is_numeric( $_GET['num'] )
|
||||
and $_GET['num'] >= 0 )
|
||||
{
|
||||
$page['start'] = floor( $_GET['num'] / $user['nb_image_page'] );
|
||||
$page['start']*= $user['nb_image_page'];
|
||||
}
|
||||
|
||||
initialize_category();
|
||||
|
||||
// caddie filling :-)
|
||||
|
||||
Reference in New Issue
Block a user