From: Raphaël Barrois Date: Mon, 16 Aug 2010 22:12:09 +0000 (+0200) Subject: Update SearchSet args() function, and core for same functions. X-Git-Tag: xorg/1.0.1~254 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5c4b28bbf29cdbd5e3d19a511b9329595ba721b8;p=platal.git Update SearchSet args() function, and core for same functions. Signed-off-by: Raphaël Barrois --- diff --git a/core b/core index 786bffb..e8e034f 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 786bffb570bfc2f5ff1dad386a9558501d4c16e8 +Subproject commit e8e034fd9237000dba475f8ed890bc52115963d5 diff --git a/include/userset.inc.php b/include/userset.inc.php index e4631a2..0612d2f 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -126,6 +126,18 @@ class SearchSet extends ProfileSet parent::__construct($conds, $orders); } + /** Add a "rechercher=Chercher" field to the query to simulate the POST + * behaviour. + */ + public function args() + { + $args = parent::args(); + if (!isset($args['rechercher'])) { + $args['rechercher'] = 'Chercher'; + } + return $args; + } + protected function &getFilterResults(PlFilter &$pf, PlLimit $limit) { $profiles = $pf->getProfiles($limit, Profile::FETCH_MINIFICHES); diff --git a/templates/search/adv.links.tpl b/templates/search/adv.links.tpl index 58afd76..381d450 100644 --- a/templates/search/adv.links.tpl +++ b/templates/search/adv.links.tpl @@ -25,12 +25,12 @@