Changeset 21205


Ignore:
Timestamp:
03/05/13 12:33:22 (6 years ago)
Author:
plg
Message:

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

Location:
extensions/PayPalShoppingCart
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PayPalShoppingCart/admin.php

    r19465 r21205  
    8080  $query='SELECT value FROM '.PPPPP_CONFIG_TABLE.' WHERE param = \'currency\';'; 
    8181  $result = pwg_query($query); 
    82   $row = mysql_fetch_array($result); 
     82  $row = pwg_db_fetch_row($result); 
    8383  $template->assign('ppppp_currency',$row[0]); 
    8484   
     
    161161  $query='SELECT * FROM '.PPPPP_SIZE_TABLE.';'; 
    162162  $result = pwg_query($query); 
    163   while($row = mysql_fetch_array($result)){ 
     163  while($row = pwg_db_fetch_assoc($result)){ 
    164164   $template->append('ppppp_array_size',$row); 
    165165  } 
     
    175175  $query='SELECT value FROM '.PPPPP_CONFIG_TABLE.' WHERE param = \'fixed_shipping\';'; 
    176176  $result = pwg_query($query); 
    177   $row = mysql_fetch_array($result); 
     177  $row = pwg_db_fetch_row($result); 
    178178  $template->assign('ppppp_fixed_shipping',$row[0]); 
    179179  break; 
  • 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.