Ignore:
Timestamp:
Mar 28, 2010, 9:19:27 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/lmt_aip.class.inc.php

    r4396 r5431  
    376376    $sql="SELECT count(element_id) FROM ".CADDIE_TABLE." WHERE user_id = '".$user['id']."'";
    377377    $result=pwg_query($sql);
    378     $nbphotos=mysql_fetch_array($result);
     378    $nbphotos=pwg_db_fetch_row($result);
    379379
    380380    $author_list_values = array(0);
     
    384384    if($result)
    385385    {
    386       while($row=mysql_fetch_array($result))
     386      while($row=pwg_db_fetch_assoc($result))
    387387      {
    388388        $author_list_values[]=$row['id'];
     
    511511    if($result)
    512512    {
    513       while($row=mysql_fetch_array($result))
     513      while($row=pwg_db_fetch_assoc($result))
    514514      {
    515515        $lmt_licence_default_author_values[]=$row['id'];
     
    616616      if($result)
    617617      {
    618         if(mysql_affected_rows()==1)
     618        if(pwg_db_changes()==1)
    619619        {
    620620          $this->display_result(l10n("lmt_author_deleted"), true);
     
    625625          if($result)
    626626          {
    627             $nbimages=mysql_affected_rows();
     627            $nbimages=pwg_db_changes();
    628628            if($nbimages>0)
    629629            {
     
    684684    if($result)
    685685    {
    686       while($row=mysql_fetch_array($result))
     686      while($row=pwg_db_fetch_assoc($result))
    687687      {
    688688        $datas["author_list"][]=array(
     
    715715      if($result)
    716716      {
    717         while($row=mysql_fetch_array($result))
     717        while($row=pwg_db_fecth_assoc($result))
    718718        {
    719719          $datas=array(
     
    879879    if($result)
    880880    {
    881       while($row = mysql_fetch_array($result))
     881      while($row = pwg_db_fetch_assoc($result))
    882882      {
    883883        $filenfo = pathinfo($row['path']);
     
    919919    $sql="select FOUND_ROWS()";
    920920    $result=pwg_query($sql);
    921     $nb=mysql_fetch_array($result);
     921    $nb=pwg_db_fetch_row($result);
    922922
    923923    $pages_navigation = new pages_navigation();
     
    982982    if($result)
    983983    {
    984       while($row = mysql_fetch_array($result))
     984      while($row = pwg_db_fetch_assoc($result))
    985985      {
    986986        $filenfo = pathinfo($row['path']);
     
    10211021    $sql="select FOUND_ROWS()";
    10221022    $result=pwg_query($sql);
    1023     $nb=mysql_fetch_array($result);
     1023    $nb=pwg_db_fetch_row($result);
    10241024
    10251025    $pages_navigation = new pages_navigation();
Note: See TracChangeset for help on using the changeset viewer.