X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fplset.php;h=233870608606e9012703d4f0b2a1fe099ff19391;hb=b1cdd9e1ab79e167a2a7ecc4e279b0ee2d785860;hp=83322a63d767ff8ecdb3698d348fdffa047a6459;hpb=ff3eb9b7ade4406804e721579111384a768e7791;p=platal.git diff --git a/classes/plset.php b/classes/plset.php index 83322a6..2338706 100644 --- a/classes/plset.php +++ b/classes/plset.php @@ -96,7 +96,7 @@ class PlSet protected function encodeArgs(array $args, $encode = false) { $qs = '?'; - $sep = $encode ? '&' : '&'; + $sep = '&'; foreach ($args as $k=>$v) { if (!$encode) { $k = urlencode($k); @@ -116,7 +116,6 @@ class PlSet $limitcount = "LIMIT $limitcount"; } $joins = $this->joins . ' ' . $joins; - $where = $where; if (trim($this->where)) { if (trim($where)) { $where .= ' AND '; @@ -161,6 +160,9 @@ class PlSet return false; } $args = $view->args(); + if (!isset($args['rechercher'])) { + $args['rechercher'] = 'Chercher'; + } $page->changeTpl('core/plset.tpl'); $page->assign('plset_base', $baseurl); $page->assign('plset_mods', $this->mods); @@ -275,7 +277,7 @@ abstract class MultipageView implements PlView unset($list['page']); unset($list['order']); return $list; - } + } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: