Ignore:
Timestamp:
Feb 11, 2012, 6:38:34 AM (12 years ago)
Author:
rvelices
Message:

rv_gmaps compatible with core version 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/admin/admin_sync.php

    r12701 r13092  
    55  $sync_options = array(
    66    'simulate' => isset($_POST['simulate']),
    7                 'use_high' => isset($_POST['use_high']),
    87    'cat_id' => isset($_POST['cat_id']) ? (int)$_POST['cat_id'] : 0,
    98    'subcats_included' => isset($_POST['subcats_included']),
     
    1211  $sync_options = array(
    1312    'simulate' => true,
    14                 'use_high' => true,
    1513    'cat_id' => 0,
    1614    'subcats_included' => true,
     
    3533
    3634    $query='
    37 SELECT id,path,lat,lon,has_high
     35SELECT id,path,lat,lon
    3836  FROM '.IMAGES_TABLE.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id=image_id
    3937  WHERE category_id IN ('.implode(',', $cat_ids).')
     
    4341  {
    4442    $query='
    45 SELECT id,path,lat,lon,has_high
     43SELECT id,path,lat,lon
    4644  FROM '.IMAGES_TABLE;
    4745  }
     
    5351  {
    5452                $filename = $image['path'];
    55                 if ($sync_options['use_high'] and $image['has_high']=='true')
    56                         $filename = get_high_path($image);
    5753                $exif = @read_exif_data( $filename );
    5854                if ( empty($exif) )
     
    110106    array(
    111107      'SUBCATS_INCLUDED_CHECKED' => $sync_options['subcats_included'] ? 'checked="checked"' : '',
    112                         'USE_HIGH_CHECKED' => $sync_options['use_high'] ? 'checked="checked"' : ''
    113108    )
    114109  );
Note: See TracChangeset for help on using the changeset viewer.