mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
feature 169: each category can have its own image order
git-svn-id: http://piwigo.org/svn/trunk@1500 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -110,7 +110,8 @@ function get_cat_info( $id )
|
||||
{
|
||||
$infos = array('nb_images','id_uppercat','comment','site_id'
|
||||
,'dir','date_last','uploadable','status','visible'
|
||||
,'representative_picture_id','uppercats','commentable');
|
||||
,'representative_picture_id','uppercats','commentable'
|
||||
,'image_order');
|
||||
|
||||
$query = '
|
||||
SELECT '.implode(',', $infos).'
|
||||
|
||||
@@ -342,6 +342,11 @@ if ('categories' == $page['section'])
|
||||
|
||||
if (!isset($page['chronology_field']))
|
||||
{
|
||||
if ( !empty($result['image_order']) and !isset($page['super_order_by']) )
|
||||
{
|
||||
$conf[ 'order_by' ] = ' ORDER BY '.$result['image_order'];
|
||||
}
|
||||
|
||||
$query = '
|
||||
SELECT image_id
|
||||
FROM '.IMAGE_CATEGORY_TABLE.'
|
||||
|
||||
Reference in New Issue
Block a user