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_root.class.inc.php

    r12222 r15343  
    8686      'amd_FillDataBaseContinuously' => "y",
    8787      'amd_FillDataBaseIgnoreSchemas' => array(),
    88       'amd_UseMetaFromHD' => "y",
    8988      'amd_InterfaceMode' => "advanced",    // 'advanced' or 'basic'
    9089
     
    182181  public function doRandomAnalyze()
    183182  {
    184     $sql="SELECT tai.imageId, ti.path, ti.has_high FROM ".$this->tables['images']." tai
     183    $sql="SELECT tai.imageId, ti.path FROM ".$this->tables['images']." tai
    185184            LEFT JOIN ".IMAGES_TABLE." ti ON tai.imageId = ti.id
    186185          WHERE tai.analyzed = 'n'
     
    194193      while($row=pwg_db_fetch_assoc($result))
    195194      {
    196         if($row['has_high']==='true' and $this->config['amd_UseMetaFromHD']=='y')
    197         {
    198           $this->analyzeImageFile($path."/".dirname($row['path'])."/pwg_high/".basename($row['path']), $row['imageId']);
    199         }
    200         else
    201         {
    202           $this->analyzeImageFile($path."/".$row['path'], $row['imageId']);
    203         }
     195        $this->analyzeImageFile($path."/".$row['path'], $row['imageId']);
    204196      }
    205197
Note: See TracChangeset for help on using the changeset viewer.