X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fgadgets.php;h=746ea3e43f8560ae47382161f6c41d40248bfca7;hb=a037f0a822d44e1fd79e5fe488092b0ab8dbc1ab;hp=c7eb9895d97d94c6d35f4bde1c394b93ccac5f78;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;p=platal.git diff --git a/modules/gadgets.php b/modules/gadgets.php index c7eb989..746ea3e 100644 --- a/modules/gadgets.php +++ b/modules/gadgets.php @@ -1,6 +1,6 @@ assign('events', $data); } - function handler_ig_search_xml(&$page) { + function handler_ig_search_xml($page) { require_once 'gadgets/gadgets.inc.php'; init_igoogle_xml('gadgets/ig-search.xml.tpl'); } - function handler_ig_search(&$page) + function handler_ig_search($page) { if (Env::has('quick') && Env::s('quick') != '') { + global $globals; require_once 'userset.inc.php'; - $view = new SearchSet(true); + + $view = new QuickSearchSet(); $view->addMod('gadget', 'Gadget', true); $view->apply(null, $page); @@ -86,6 +87,8 @@ class GadgetsModule extends PLModule $page->assign('error', 'Recherche trop générale.'); } elseif (empty($nb_tot)) { $page->assign('error', 'Il n\'existe personne correspondant à ces critères dans la base !'); + } else { + $page->assign('error', false); } }