Changeset 15343 for extensions/AMetaData/amd_aip_install.class.inc.php
- Timestamp:
- May 27, 2012, 1:31:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_aip_install.class.inc.php
r7519 r15343 41 41 $this->tabsheet->add('install', 42 42 l10n('g003_install'), 43 $this->getAdminLink()." &f_tabsheet=install");43 $this->getAdminLink()."-install"); 44 44 } 45 45 … … 71 71 $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/amd_admin.tpl"); 72 72 73 $this->tabsheet->select($_ REQUEST['f_tabsheet']);73 $this->tabsheet->select($_GET['tab']); 74 74 $this->tabsheet->assign(); 75 75 $selected_tab=$this->tabsheet->get_selected(); … … 80 80 $pluginInfo=array( 81 81 'AMD_VERSION' => "<i>".$this->getPluginName()."</i> ".l10n('g003_version').AMD_VERSION, 82 'AMD_PAGE' => $_ REQUEST['f_tabsheet'],82 'AMD_PAGE' => $_GET['tab'], 83 83 'PATH' => AMD_PATH 84 84 ); … … 97 97 protected function checkRequest() 98 98 { 99 $_ REQUEST['f_tabsheet']='install';99 $_GET['tab']='install'; 100 100 101 101 if(!isset($_REQUEST['ajaxfct'])) return(false); … … 336 336 * select 25 pictures into the caddie 337 337 */ 338 $sql="SELECT ti.id, ti.path , ti.has_high338 $sql="SELECT ti.id, ti.path 339 339 FROM ".CADDIE_TABLE." tc 340 340 LEFT JOIN ".IMAGES_TABLE." ti ON ti.id = tc.element_id … … 365 365 $excludeList=""; 366 366 } 367 $sql="SELECT ti.id, ti.path , ti.has_high367 $sql="SELECT ti.id, ti.path 368 368 FROM ".IMAGES_TABLE." ti ".$excludeList." 369 369 ORDER BY RAND() LIMIT ".(25-count($listToAnalyze[0])).";"; … … 388 388 foreach($listToAnalyze[0] as $val) 389 389 { 390 if($val['has_high']==='true' and $this->config['amd_UseMetaFromHD']=='y') 391 { 392 $this->analyzeImageFile($path."/".dirname($val['path'])."/pwg_high/".basename($val['path']), $val['id']); 393 } 394 else 395 { 396 $this->analyzeImageFile($path."/".$val['path'], $val['id']); 397 } 390 $this->analyzeImageFile($path."/".$val['path'], $val['id']); 398 391 } 399 392 $this->makeStatsConsolidation();
Note: See TracChangeset
for help on using the changeset viewer.