Changeset 15343 for extensions/AMetaData/amd_ajax.php
- Timestamp:
- May 27, 2012, 1:31:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_ajax.php
r12222 r15343 455 455 { 456 456 // get a randomly picture... 457 $sql="SELECT pai.imageId, pi.path , pi.has_high457 $sql="SELECT pai.imageId, pi.path 458 458 FROM ".$this->tables['images']." pai 459 459 LEFT JOIN ".IMAGES_TABLE." pi ON pai.imageId=pi.id … … 475 475 { 476 476 $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']; 485 478 } 486 479 … … 609 602 $path=dirname(dirname(dirname(__FILE__))); 610 603 611 $sql="SELECT id, path , has_highFROM ".IMAGES_TABLE." WHERE id IN (".implode(", ", $list).")";604 $sql="SELECT id, path FROM ".IMAGES_TABLE." WHERE id IN (".implode(", ", $list).")"; 612 605 $result=pwg_query($sql); 613 606 if($result) … … 627 620 //$mem1=memory_get_usage(); 628 621 //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']); 637 623 //echo $returned."\n"; 638 624 //$mem2=memory_get_usage();
Note: See TracChangeset
for help on using the changeset viewer.