X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fgeoloc.php;h=f54f57e41d677eb4dfe32e983812780c3d436310;hb=1d10d3fd659fa8eb7c663d6bb599bc8bbc0feeb3;hp=f1a5b31dc2f77e1f4272436133e331801d8e281e;hpb=abc680841e38e93931ad07d40f5feab67c3505de;p=platal.git diff --git a/modules/geoloc.php b/modules/geoloc.php index f1a5b31..f54f57e 100644 --- a/modules/geoloc.php +++ b/modules/geoloc.php @@ -68,17 +68,17 @@ class GeolocModule extends PLModule $page->assign('request_geodesix', 1); if (!empty($GLOBALS['IS_XNET_SITE'])) { - $page->useMenu(); - $page->setType($globals->asso('cat')); $page->assign('no_annu', 1); + new_annu_page('geoloc/index.tpl'); + } else { + $page->changeTpl('geoloc/index.tpl'); } require_once dirname(__FILE__).'/search/search.inc.php'; - $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=';