Ignore:
Timestamp:
01/29/13 22:21:43 (7 years ago)
Author:
rvelices
Message:

rv* plugins use pwg_db_* instead of mysql_* functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/kml.php

    r17513 r20461  
    8282  $categories = array(); 
    8383  $thumbnail_ids=array(); 
    84   while ($row = mysql_fetch_assoc($result)) 
     84  while ($row = pwg_db_fetch_assoc($result)) 
    8585  { 
    86     array_push($categories, $row); 
     86    $categories[] = $row; 
    8787    if (isset($row['representative_picture_id']) and is_numeric($row['representative_picture_id'])) 
    88       array_push($thumbnail_ids, $row['representative_picture_id'] ); 
     88      $thumbnail_ids[] = $row['representative_picture_id']; 
    8989  } 
    9090  $thumbnail_src_of = array(); 
     
    9696  WHERE id IN ('.implode(',', $thumbnail_ids).')'; 
    9797    $result = pwg_query($query); 
    98     while ($row = mysql_fetch_assoc($result)) 
     98    while ($row = pwg_db_fetch_assoc($result)) 
    9999      $thumbnail_src_of[$row['id']] = DerivativeImage::thumb_url($row); 
    100100    unset($thumbnail_ids); 
Note: See TracChangeset for help on using the changeset viewer.