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_db_integrity/check_db.php

    r8897 r20461  
    88  $query = ' 
    99DESCRIBE '.$reft.' '.$reff; 
    10   $row = mysql_fetch_assoc( pwg_query($query) ); 
     10  $row = pwg_db_fetch_assoc( pwg_query($query) ); 
    1111  $ref_nullable = ( $row['Null'] != ''); 
    1212 
     
    2121 
    2222  $result = pwg_query($query); 
    23   return mysql_num_rows($result); 
     23  return pwg_db_num_rows($result); 
    2424} 
    2525 
     
    9999  FROM '.CATEGORIES_TABLE.' c INNER JOIN '.OLD_PERMALINKS_TABLE.' op ON c.permalink=op.permalink'; 
    100100        $result = pwg_query($query); 
    101         $tpl_var['result'] = mysql_num_rows($result); 
    102         while ($row=mysql_fetch_assoc($result)) 
     101        $tpl_var['result'] = pwg_db_num_rows($result); 
     102        while ($row=pwg_db_fetch_assoc($result)) 
    103103        { 
    104104                $tpl_var['errors'][] = $row['permalink'].' matches categories '.$row['id'].' and '.$row['cat_id']; 
     
    122122  WHERE (ic.category_id IS NULL OR ic.image_id IS NULL) AND i.storage_category_id IS NOT NULL'; 
    123123        $result = pwg_query($query); 
    124         $tpl_var['result'] = mysql_num_rows($result); 
     124        $tpl_var['result'] = pwg_db_num_rows($result); 
    125125        $i=0; 
    126         while ($row=mysql_fetch_assoc($result) and $i<=50 ) 
     126        while ($row=pwg_db_fetch_assoc($result) and $i<=50 ) 
    127127        { 
    128128                $tpl_var['errors'][] = $row['path'].' missing entry ('.$row['id'].','.$row['storage_category_id']. ') in #'.IMAGE_CATEGORY_TABLE; 
Note: See TracChangeset for help on using the changeset viewer.