Ignore:
Timestamp:
May 27, 2012, 1:31:32 PM (12 years ago)
Author:
grum
Message:

feature:2637 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_ajax.php

    r12222 r15343  
    455455      {
    456456        // get a randomly picture...
    457         $sql="SELECT pai.imageId, pi.path, pi.has_high
     457        $sql="SELECT pai.imageId, pi.path
    458458              FROM ".$this->tables['images']." pai
    459459                LEFT JOIN ".IMAGES_TABLE." pi ON pai.imageId=pi.id
     
    475475        {
    476476          $imageId=$row['imageId'];
    477           if($row['has_high']==='true' and $this->config['amd_UseMetaFromHD']=='y')
    478           {
    479             $filename=$path."/".dirname($row['path'])."/pwg_high/".basename($row['path']);
    480           }
    481           else
    482           {
    483             $filename=$path."/".$row['path'];
    484           }
     477          $filename=$path."/".$row['path'];
    485478        }
    486479
     
    609602        $path=dirname(dirname(dirname(__FILE__)));
    610603
    611         $sql="SELECT id, path, has_high FROM ".IMAGES_TABLE." WHERE id IN (".implode(", ", $list).")";
     604        $sql="SELECT id, path FROM ".IMAGES_TABLE." WHERE id IN (".implode(", ", $list).")";
    612605        $result=pwg_query($sql);
    613606        if($result)
     
    627620            //$mem1=memory_get_usage();
    628621            //echo "memory before analyze:".$mem1."\n";
    629             if($row['has_high']==='true' and $this->config['amd_UseMetaFromHD']=='y')
    630             {
    631               $returned.=$this->analyzeImageFile($path."/".dirname($row['path'])."/pwg_high/".basename($row['path']), $row['id']);
    632             }
    633             else
    634             {
    635               $returned.=$this->analyzeImageFile($path."/".$row['path'], $row['id']);
    636             }
     622            $returned.=$this->analyzeImageFile($path."/".$row['path'], $row['id']);
    637623            //echo $returned."\n";
    638624            //$mem2=memory_get_usage();
Note: See TracChangeset for help on using the changeset viewer.