Changeset 19840
- Timestamp:
- Jan 5, 2013, 2:37:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/main.inc.php
r19283 r19840 229 229 230 230 $result = pwg_query($query); 231 while ($row = mysql_fetch_assoc($result))231 while ($row = pwg_db_fetch_assoc($result)) 232 232 { 233 233 $ids[] = $row['id']; … … 289 289 $result = pwg_query($query); 290 290 291 if($result and $category = mysql_fetch_array($result))291 if($result and $category = pwg_db_fetch_array($result)) 292 292 { 293 293 $template->set_filename('extended_description_content', dirname(__FILE__) . '/template/cat.tpl'); … … 350 350 351 351 $imglist=array(); 352 while ($picture = mysql_fetch_array($result))352 while ($picture = pwg_db_fetch_array($result)) 353 353 { 354 354 $imglist[$picture["id"]]=$picture; … … 622 622 ;'; 623 623 $ids = array_from_query($query, 'image_id'); 624 $ids = implode(',', $ids); 624 625 } 625 626 // ...or pictures list … … 630 631 else 631 632 { 632 $ids = explode(',', $params['list']);633 $ids = $params['list']; 633 634 } 634 635 … … 637 638 SELECT * 638 639 FROM '.IMAGES_TABLE.' 639 WHERE id IN ('. implode(',', $ids).')640 ORDER BY FIND_IN_SET(id, "'. implode(',', $ids).'")640 WHERE id IN ('.$ids.') 641 ORDER BY FIND_IN_SET(id, "'.$ids.'") 641 642 ;'; 642 643 $pictures = hash_from_query($query, 'id'); … … 717 718 function get_deriv_type($size) 718 719 { 720 $size = strtoupper($size); 721 719 722 $size_map = array( 720 723 'SQ' => IMG_SQUARE, … … 731 734 if (!array_key_exists($size, $size_map)) $size = 'M'; 732 735 733 return $size_map[ strtoupper($size)];736 return $size_map[$size]; 734 737 } 735 738
Note: See TracChangeset
for help on using the changeset viewer.