Ignore:
Timestamp:
Mar 5, 2013, 12:33:22 PM (11 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.5: replace functions mysql_* with pwg_db*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PayPalShoppingCart/main.inc.php

    r19577 r21205  
    150150 $query='SELECT * FROM '.PPPPP_SIZE_TABLE.' '.@$conf['PayPalShoppingCart_sizes_order_by'].';';
    151151 $result = pwg_query($query);
    152  while($row = mysql_fetch_array($result)){
     152 while($row = pwg_db_fetch_assoc($result)){
    153153  $template->append('ppppp_array_size',$row);
    154154  }
    155155 $query='SELECT value FROM '.PPPPP_CONFIG_TABLE.' WHERE param = \'fixed_shipping\';';
    156156 $result = pwg_query($query);
    157  $row = mysql_fetch_array($result);
     157 $row = pwg_db_fetch_row($result);
    158158 $template->assign('ppppp_fixed_shipping',$row[0]);
    159159 $query='SELECT value FROM '.PPPPP_CONFIG_TABLE.' WHERE param = \'currency\';';
    160160 $result = pwg_query($query);
    161  $row = mysql_fetch_array($result);
     161 $row = pwg_db_fetch_row($result);
    162162 $template->assign('ppppp_currency',$row[0]);
    163163 
Note: See TracChangeset for help on using the changeset viewer.