mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +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:
@@ -39,7 +39,7 @@ $array_cat_directories = array();
|
||||
|
||||
$query = '
|
||||
SELECT DISTINCT(id),path,file,date_available
|
||||
,tn_ext,name,filesize,storage_category_id,average_rate
|
||||
,tn_ext,name,filesize,storage_category_id,average_rate,hit
|
||||
FROM '.IMAGES_TABLE.' AS i
|
||||
INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id=ic.image_id
|
||||
'.$page['where'].'
|
||||
@@ -108,6 +108,11 @@ while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$name = '('.$row['average_rate'].') '.$name;
|
||||
}
|
||||
else
|
||||
if ($page['cat'] == 'most_visited')
|
||||
{
|
||||
$name = '('.$row['hit'].') '.$name;
|
||||
}
|
||||
|
||||
if ($page['cat'] == 'search')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user