Ignore:
Timestamp:
Jan 29, 2013, 10:21:43 PM (11 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/include/functions_map.php

    r18928 r20461  
    319319  $uppercats_list = array();
    320320  $cat_bounds = array();
    321   while ($row = mysql_fetch_assoc($result))
    322   {
    323     array_push($uppercats_list, $row['uppercats']);
     321  while ($row = pwg_db_fetch_assoc($result))
     322  {
     323    $uppercats_list[] = $row['uppercats'];
    324324    $cat_id = $row['cat_id'];
    325325    unset( $row['cat_id'], $row['uppercats'] );
     
    363363
    364364
    365 function marray_from_query($query)
    366 {
    367   $ret = array();
    368   $result = pwg_query($query);
    369   while ($row = mysql_fetch_assoc($result))
    370     $ret[] = $row;
    371   return $ret;
    372 }
    373 
    374365define('RVM_BUILD_ARRAY',     0);
    375366define('RVM_BUILD_HASH',      1);
     
    398389  {
    399390    case RVM_BUILD_ARRAY:
    400       $func = 'marray_from_query';
     391      $func = 'array_from_query';
    401392      $group_by = '
    402393  GROUP BY i.id';
     
    408399      break;
    409400    case RVM_BUILD_AGGREGATE:
    410       $func = 'marray_from_query';
     401      $func = 'array_from_query';
    411402      $group_by = '';
    412403      break;
Note: See TracChangeset for help on using the changeset viewer.