diff options
Diffstat (limited to '')
-rw-r--r-- | include/section_init.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index b2bb4c90e..1aa58516c 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -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.' |