Reformat examples
[platal.git] / modules / geoloc.php
index f1a5b31..5c0be63 100644 (file)
@@ -78,7 +78,7 @@ class GeolocModule extends PLModule
         $page->changeTpl('geoloc/index.tpl');
         $fields = new SFieldGroup(true, advancedSearchFromInput());
         $search = str_replace('&','&',$fields->get_url());
-        if ((!Env::has('only_current') && !Env::has('rechercher')) || Env::i('only_current') == 'on')
+        if ((!Env::has('only_current') && !Env::has('rechercher')) || Env::v('only_current') == 'on')
             $search .= '&only_current=on';
         elseif (Env::i('only_current') != 'on')
             $search .= '&only_current=';