Changeset 11893 for trunk/include/section_init.inc.php
- Timestamp:
- Aug 2, 2011, 9:20:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/section_init.inc.php
r8728 r11893 62 62 break; 63 63 } 64 64 65 65 // the $_GET keys are not protected in include/common.inc.php, only the values 66 66 $rewritten = pwg_db_real_escape_string($rewritten); 67 67 68 68 $page['root_path'] = PHPWG_ROOT_PATH; 69 69 } … … 464 464 { 465 465 $page['super_order_by'] = true; 466 $conf['order_by'] = ' ORDER BY hit DESC, file ASC';466 $conf['order_by'] = ' ORDER BY hit DESC, id DESC'; 467 467 $query = ' 468 SELECT DISTINCT(id) , hit, file468 SELECT DISTINCT(id) 469 469 FROM '.IMAGES_TABLE.' 470 470 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id … … 490 490 { 491 491 $page['super_order_by'] = true; 492 $conf['order_by'] = ' ORDER BY average_rate DESC, id ASC';492 $conf['order_by'] = ' ORDER BY rating_score DESC, id DESC'; 493 493 494 494 $query =' 495 SELECT DISTINCT(id) , average_rate495 SELECT DISTINCT(id) 496 496 FROM '.IMAGES_TABLE.' 497 497 INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON id = ic.image_id 498 WHERE average_rate IS NOT NULL498 WHERE rating_score IS NOT NULL 499 499 '.$forbidden.' 500 500 '.$conf['order_by'].'
Note: See TracChangeset
for help on using the changeset viewer.