Code

Updated Pager
[gosa.git] / gosa-plugins / rsyslog / addons / rsyslog / class_rsyslog.inc
index 43e542c7e18e60c063aaeb7e3efd4cf14887c4a6..4c7ed5bc6358949b6fc490251f719a84f89df9a3 100644 (file)
@@ -139,7 +139,8 @@ class rsyslog extends plugin
     $smarty->assign("downimg", "<img src='images/lists/sort-down.png' class='center' alt='\\/' border='0'>");
     $smarty->assign("upimg", "<img src='images/lists/sort-up.png' class='center' alt='\\/' border='0'>");
     $smarty->assign("result", $result);
-    if($this->limit != '-'){
+    $smarty->assign("matches", sprintf(_("%s entries match the filter"), $result["count"]));
+    if($this->limits[$this->limit] != '-'){
       $smarty->assign("page_sel", range_selector($result['count'],$this->page,$this->limits[$this->limit]));
     }else{
       $smarty->assign("page_sel", "");
@@ -215,7 +216,7 @@ class rsyslog extends plugin
         if($result['count'] < $this->page) $this->page = 0;
 
         $filter.= "ORDER BY ".$this->sort_value." ".$this->sort_type.", DeviceReportedTime ".$this->sort_type." ";
-        if($this->limit != "-"){
+        if($this->limits[$this->limit]!= "-"){
           $filter.= "LIMIT ".$this->page.", ".$this->limits[$this->limit];
         }else{
           $this->page = 0;