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/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;
Note: See TracChangeset for help on using the changeset viewer.