Ignore:
Timestamp:
Jan 29, 2013, 10:21:43 PM (8 years ago)
Author:
rvelices
Message:

rv* plugins use pwg_db_* instead of mysql_* functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_sitemap/sitemap.php

    r17516 r20461  
    122122  WHERE max_date_last IS NOT NULL
    123123  ORDER BY global_rank';
    124 $result = pwg_query($query);
    125 $categories = array();
    126 while ($row = mysql_fetch_assoc($result))
    127 {
    128   $categories[] = $row;
    129 }
     124$categories = array_from_query($query);
    130125usort($categories, 'global_rank_compare');
    131126
     
    205200    $result = pwg_query($query);
    206201    $tag_infos = array();
    207     while ($row = mysql_fetch_assoc($result))
     202    while ($row = pwg_db_fetch_assoc($result))
    208203    {
    209204      $tag_infos[$row['tag_id']]= max( $row['da'],$row['dc'],$row['dm']);
     
    241236  LIMIT '.$photo_count;
    242237    $result = pwg_query($query);
    243     while ($row = mysql_fetch_assoc($result))
     238    while ($row = pwg_db_fetch_assoc($result))
    244239    {
    245240      $url = make_picture_url( array(
Note: See TracChangeset for help on using the changeset viewer.