Make addFirefoxEngine global
[platal.git] / modules / geoloc.php
index ceb3243..6ec7551 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -69,13 +69,7 @@ class GeolocModule extends PLModule
 
         if (!empty($GLOBALS['IS_XNET_SITE'])) {
             $page->assign('no_annu', 1);
-            if ($globals->asso('cat') == 'Promotions') {
-                new_group_open_page('geoloc/index.tpl');
-            } elseif ($globals->asso('pub') == 'public') {
-                new_group_page('geoloc/index.tpl');
-            } else {
-                new_groupadmin_page('geoloc/index.tpl');
-            }
+            new_annu_page('geoloc/index.tpl');
         } else {
             $page->changeTpl('geoloc/index.tpl');
         }
@@ -92,6 +86,7 @@ class GeolocModule extends PLModule
         $search = preg_replace('/(^|&)mapid=([0-9]+)(&)/','\1\3', $search);
         if ($search)
             $search = '?'.$search;
+        $page->assign('search_nourlencode',$search);
         $page->assign('search',urlencode($search));
 
         $page->assign('protocole', substr($globals->baseurl,0,strpos($globals->baseurl,':')));