X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsearch.inc.php;h=296eaa14b25d28bb057fec85ca633f6133cc4aaf;hb=cab0809050d58f8484608e91f7555ebd69dcb451;hp=32ccecc8ea97fe17b0fd6551c00b14bd9fba3baa;hpb=68a269916d88ab4f635de4c96367af1ad82ff135;p=platal.git diff --git a/include/search.inc.php b/include/search.inc.php index 32ccecc..296eaa1 100644 --- a/include/search.inc.php +++ b/include/search.inc.php @@ -104,11 +104,11 @@ class XOrgSearch extends XOrgPlugin { foreach ($this->orders as $key=>$o) { if ($o[3] == AUTH_COOKIE) { - $this->orders[$key][3] = logged(); + $this->orders[$key][3] = S::logged(); } elseif ($o[3] == AUTH_PUBLIC) { $this->orders[$key][3] = true; } else { - $this->orders[$key][3] = identified(); + $this->orders[$key][3] = S::identified(); } } } @@ -151,7 +151,7 @@ class XOrgSearch extends XOrgPlugin list($list, $total) = call_user_func($this->_callback, $offset, $this->limit, $sql_order); $page_max = intval(($total-1)/$this->limit); - if(!logged() && $page_max > $globals->search->public_max) + if(!S::logged() && $page_max > $globals->search->public_max) $page_max = $globals->search->public_max; $links = Array();