Ignore:
Timestamp:
Dec 29, 2013, 3:14:42 PM (10 years ago)
Author:
rvelices
Message:

rv_gmaps compatible with nez latitude/longitude fields in piwigo core 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/include/picture_map.inc.php

    r24745 r26331  
    3636                        'MAP_TYPE' => rvm_get_config_var('map_type', 'ROADMAP'),
    3737      'U_NO_MAP' => duplicate_picture_url(),
    38       'U_BLOWUP' => rvm_make_blowup_url( array('ll'=>$picture), array('start','box') ),
     38      'U_BLOWUP' => rvm_make_blowup_url( array('ll'=> array('lat'=>$picture['latitude'],'lon'=>$picture['longitude'])), array('start','box') ),
    3939      'COMMENT_IMG' => trigger_event('render_element_description', $picture['comment'])
    4040    )
    4141  );
    42   if ( isset($picture['lat']) )
     42  if ( isset($picture['latitude']) )
    4343  {
    4444    $template->assign( 'coordinates',
    4545        array(
    46           'LAT' => $picture['lat'],
    47           'LON' => $picture['lon'],
     46          'LAT' => $picture['latitude'],
     47          'LON' => $picture['longitude'],
    4848        )
    4949      );
Note: See TracChangeset for help on using the changeset viewer.