Ignore:
Timestamp:
Jan 4, 2011, 2:24:50 PM (13 years ago)
Author:
cljosse
Message:

[edit_gmaps] clean up.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/edit_gmaps/admin/admin_edit.php

    r8456 r8466  
    229229                $lat=$location[1];
    230230                $lon=$location[0];
     231                $adresse ="Europe";
     232                if (date_default_timezone_get()) {
     233                        $adresse = date_default_timezone_get()  ;
     234                }
     235         
    231236
    232237                                $template->assign(      array('lat' => $lat ,
     
    235240                                                   array('LAT' => $lat,
    236241                                                                                 'LON' => $lon,
     242                                                                                  'ADRESSE' => $adresse,
    237243                                                                                )
    238244                                                                        );
     
    240246                                                                       
    241247  foreach ($collection as $id_0)  {
     248                $adresse ="Europe/Paris";
     249                if (date_default_timezone_get()) {
     250                        $adresse ="'" . date_default_timezone_get() ."'" ;
     251                }
     252         
     253
    242254                foreach ($images as $image)  {
    243255
     
    251263                                                   array('LAT' => $lat,
    252264                                                                                 'LON' => $lon,
     265                                                                                   'ADRESSE' => $adresse,
    253266                                                                                )
    254267                                                                        );
Note: See TracChangeset for help on using the changeset viewer.