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:
rvelices
2006-07-26 00:51:08 +00:00
parent 7e79e15d18
commit aca06a08aa
8 changed files with 185 additions and 6 deletions
+5
View File
@@ -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.'