assign('recherche', $q); if (utils::get('q')) { $r = $wiki->search($q); $tpl->assign('resultats', $r); $tpl->assign('nb_resultats', count($r)); } function tpl_clean_snippet($str) { return preg_replace('!<(/?b)>!', '<$1>', $str); } $tpl->register_modifier('clean_snippet', 'Garradin\tpl_clean_snippet'); $tpl->display('admin/wiki/chercher.tpl'); ?>