Changeset 6701 for extensions/lmt/lmt_aip.class.inc.php
- Timestamp:
- Jul 24, 2010, 5:17:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lmt/lmt_aip.class.inc.php
r6272 r6701 619 619 if($result) 620 620 { 621 if(pwg_db_changes( )==1)621 if(pwg_db_changes($result)==1) 622 622 { 623 623 $this->displayResult(l10n("lmt_author_deleted"), true); … … 628 628 if($result) 629 629 { 630 $nbimages=pwg_db_changes( );630 $nbimages=pwg_db_changes($result); 631 631 if($nbimages>0) 632 632 { … … 795 795 } 796 796 797 protected function make_image_data($tmp )797 protected function make_image_data($tmp, $imageId) 798 798 { 799 799 $tmp2=array(); 800 for ($i=0;$i<count($tmp['id']);$i++)800 foreach($tmp['id'] as $key=>$val) 801 801 { 802 802 $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 ) 815 818 ); 816 819 } … … 895 898 'link'=>array() 896 899 ); 897 $tmpcat=$this->make_image_data($tmp );900 $tmpcat=$this->make_image_data($tmp, $row['image_id']); 898 901 899 902 $img_ids[]=$row['image_id']; … … 906 909 'file' => $row['file'], 907 910 '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 ),917 911 'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"] 918 912 ); … … 998 992 'link'=>array() 999 993 ); 1000 $tmpcat=$this->make_image_data($tmp );994 $tmpcat=$this->make_image_data($tmp, $row['image_id']); 1001 995 1002 996 $img_liste[]=array( … … 1008 1002 'file' => $row['file'], 1009 1003 '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 ),1019 1004 'thumb' => $filenfo["dirname"]."/thumbnail/".$conf["prefix_thumbnail"].$filenfo["filename"].".".$row["tn_ext"] 1020 1005 );
Note: See TracChangeset
for help on using the changeset viewer.