? _import.php
? _p_19621_taxosaveobjs.patch
? _p_20505_25termvocab.patch
? _p_20754_bannernames.patch
? _p_23163_bannerurl.patch
? _p_23687_taxopager.patch
? _p_flexinodedivs.patch
? banner_db.php
? banner_file.php
? files
? modules/banner
? modules/devel
? modules/flexinode
? modules/taxonomy_similar
? sites/morbus.totalnetnh.net
? themes/nhpr
@@ -404,7 +410,7 @@
     $vocabulary = taxonomy_get_vocabulary($vid);
     if ($vocabulary->module == 'taxonomy') {
       drupal_set_title(check_plain($vocabulary->name));
-      $start_from      = $_GET['from'] ? $_GET['from'] : 0;
+      $start_from      = $_GET['page'] ? $_GET['page'] : 0;
       $total_entries   = 0;  // total count for pager
       $page_increment  = 25; // number of tids per page
       $displayed_count = 0;  // number of tids shown
@@ -412,7 +418,7 @@
       $tree = taxonomy_get_tree($vocabulary->vid);
       foreach ($tree as $term) {
         $total_entries++; // we're counting all-totals, not displayed
-        if (($start_from && $start_from > $total_entries) || ($displayed_count == $page_increment)) { continue; }
+        if (($start_from && ($start_from * $page_increment) > $total_entries) || ($displayed_count == $page_increment)) { continue; }
         $rows[] = array(_taxonomy_depth($term->depth) . ' ' . check_plain($term->name), l(t('edit term'), "admin/taxonomy/edit/term/$term->tid"));
         $displayed_count++; // we're counting tids displayed
       }
@@ -421,8 +427,8 @@
         $rows[] = array(array('data' => t('No terms available.'), 'colspan' => '2'));
       }
 
-      $GLOBALS['pager_from_array'][] = $start_from;
-      $GLOBALS['pager_total'][]      = $total_entries;
+      $GLOBALS['pager_page_array'][] = $start_from;
+      $GLOBALS['pager_total'][]      = intval($total_entries / $page_increment);
       $rows[] = array(array('data' => theme('pager', NULL, $page_increment), 'colspan' => '2'));
     }
   }

