Ignore:
Timestamp:
Jul 24, 2010, 5:17:50 PM (14 years ago)
Author:
grum
Message:

Version 1.2.3, features:1439,1690

File:
1 edited

Legend:

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

    r6272 r6701  
    619619      if($result)
    620620      {
    621         if(pwg_db_changes()==1)
     621        if(pwg_db_changes($result)==1)
    622622        {
    623623          $this->displayResult(l10n("lmt_author_deleted"), true);
     
    628628          if($result)
    629629          {
    630             $nbimages=pwg_db_changes();
     630            $nbimages=pwg_db_changes($result);
    631631            if($nbimages>0)
    632632            {
     
    795795  }
    796796
    797   protected function make_image_data($tmp)
     797  protected function make_image_data($tmp, $imageId)
    798798  {
    799799    $tmp2=array();
    800     for($i=0;$i<count($tmp['id']);$i++)
     800    foreach($tmp['id'] as $key=>$val)
    801801    {
    802802      $tmp2[]=array(
    803         'id' => $tmp['id'][$i],
    804         'name' => $tmp['name'][$i],
    805         'type' => $tmp['type'][$i],
    806         'plinks' => $tmp['plinks'][$i],
    807         'link'=> make_index_url(
    808                           array(
    809                             'category' => array(
    810                               'id' => $tmp['id'][$i],
    811                               'name' => $tmp['name'][$i],
    812                               'permalink' => $tmp['plinks'][$i])
    813                           )
    814                         )
     803        'id' => $tmp['id'][$key],
     804        'name' => $tmp['name'][$key],
     805        'type' => $tmp['type'][$key],
     806        'plinks' => $tmp['plinks'][$key],
     807        'link'=> make_picture_url(
     808                  array(
     809                    'image_id' => $imageId,
     810                    'category' => array
     811                      (
     812                        'id' => $tmp['id'][$key],
     813                        'name' => $tmp['name'][$key],
     814                        'permalink' => $tmp['plinks'][$key]
     815                      )
     816                  )
     817                )
    815818      );
    816819    }
     
    895898              'link'=>array()
    896899            );
    897         $tmpcat=$this->make_image_data($tmp);
     900        $tmpcat=$this->make_image_data($tmp, $row['image_id']);
    898901
    899902        $img_ids[]=$row['image_id'];
     
    906909          'file' => $row['file'],
    907910          'cat' => $tmpcat,
    908           'imglink' => make_picture_url(
    909                           array(
    910                             'image_id' => $row['image_id'],
    911                             'category' => array(
    912                               'id' => $tmp['id'][0],
    913                               'name' => $tmp['name'][0],
    914                               'permalink' => $tmp['plinks'][0])
    915                           )
    916                         ),
    917911          'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"]
    918912        );
     
    998992              'link'=>array()
    999993            );
    1000         $tmpcat=$this->make_image_data($tmp);
     994        $tmpcat=$this->make_image_data($tmp, $row['image_id']);
    1001995
    1002996        $img_liste[]=array(
     
    10081002          'file' => $row['file'],
    10091003          'cat' => $tmpcat,
    1010           'imglink' => make_picture_url(
    1011                           array(
    1012                             'image_id' => $row['image_id'],
    1013                             'category' => array(
    1014                               'id' => $tmp['id'][0],
    1015                               'name' => $tmp['name'][0],
    1016                               'permalink' => $tmp['plinks'][0])
    1017                           )
    1018                         ),
    10191004          'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"]
    10201005        );
Note: See TracChangeset for help on using the changeset viewer.