]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19799 Upgraded calls to print_paging_bar
authornicolasconnault <nicolasconnault>
Tue, 8 Sep 2009 08:39:30 +0000 (08:39 +0000)
committernicolasconnault <nicolasconnault>
Tue, 8 Sep 2009 08:39:30 +0000 (08:39 +0000)
lib/tablelib.php

index ccfd43cda210c69449b60cbf4919693b5509269d..ef916e89f9eb18b347d190d0657240f3cc2cd678 100644 (file)
@@ -1005,7 +1005,9 @@ class flexible_table {
                 echo $this->download_buttons();
             }
             if($this->use_pages) {
-                print_paging_bar($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl, $this->request[TABLE_VAR_PAGE]);
+                $pagingbar = moodle_paging_bar::make($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl);
+                $pagingbar->pagevar = $this->request[TABLE_VAR_PAGE];
+                echo $OUTPUT->paging_bar($pagingbar);
             }
         }
     }
@@ -1121,13 +1123,15 @@ class flexible_table {
      * This function is not part of the public api.
      */
     function start_html(){
-
+        global $OUTPUT;
         // Do we need to print initial bars?
         $this->print_initials_bar();
 
         // Paging bar
         if($this->use_pages) {
-            print_paging_bar($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl, $this->request[TABLE_VAR_PAGE]);
+            $pagingbar = moodle_paging_bar::make($this->totalrows, $this->currpage, $this->pagesize, $this->baseurl);
+            $pagingbar->pagevar = $this->request[TABLE_VAR_PAGE];
+            echo $OUTPUT->paging_bar($pagingbar);
         }
 
         if(in_array(TABLE_P_TOP, $this->showdownloadbuttonsat)) {