? .DS_Store
? taxonomy-backpedal.patch
? sites/.DS_Store
? sites/default/files
? sites/default/private
? sites/default/settings.php
Index: modules/taxonomy/taxonomy.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.admin.inc,v
retrieving revision 1.67
diff -u -p -r1.67 taxonomy.admin.inc
--- modules/taxonomy/taxonomy.admin.inc	31 Aug 2009 20:44:22 -0000	1.67
+++ modules/taxonomy/taxonomy.admin.inc	5 Sep 2009 08:02:00 -0000
@@ -300,8 +300,8 @@ function taxonomy_overview_terms(&$form_
   // Terms from previous and next pages are shown if the term tree would have
   // been cut in the middle. Keep track of how many extra terms we show on each
   // page of terms.
-  $back_peddle    = NULL;
-  $forward_peddle = 0;
+  $backpedal    = NULL;
+  $forwardpedal = 0;
 
   // An array of the terms to be displayed on this page.
   $current_page = array();
@@ -349,7 +349,7 @@ function taxonomy_overview_terms(&$form_
         break;
       }
       // Count entries before the current page.
-      if ($page && ($page * $page_increment) > $before_entries && !isset($back_peddle)) {
+      if ($page && ($page * $page_increment) > $before_entries && !isset($backpedal)) {
         $before_entries++;
         continue;
       }
@@ -360,28 +360,28 @@ function taxonomy_overview_terms(&$form_
       }
 
       // Do not let a term start the page that is not at the root.
-      if (isset($term->depth) && ($term->depth > 0) && !isset($back_peddle)) {
-        $back_peddle = 0;
+      if (isset($term->depth) && ($term->depth > 0) && !isset($backpedal)) {
+        $backpedal = 0;
         while ($pterm = prev($tree)) {
           $before_entries--;
-          $back_peddle++;
+          $backpedal++;
           if ($pterm->depth == 0) {
             prev($tree);
             continue 2; // Jump back to the start of the root level parent.
           }
         }
       }
-      $back_peddle = isset($back_peddle) ? $back_peddle : 0;
+      $backpedal = isset($backpedal) ? $backpedal : 0;
 
       // Continue rendering the tree until we reach the a new root item.
-      if ($page_entries >= $page_increment + $back_peddle + 1 && $term->depth == 0 && $root_entries > 1) {
+      if ($page_entries >= $page_increment + $backpedal + 1 && $term->depth == 0 && $root_entries > 1) {
         $complete_tree = TRUE;
         // This new item at the root level is the first item on the next page.
         $after_entries++;
         continue;
       }
-      if ($page_entries >= $page_increment + $back_peddle) {
-        $forward_peddle++;
+      if ($page_entries >= $page_increment + $backpedal) {
+        $forwardpedal++;
       }
 
       // Finally, if we've gotten down this far, we're rendering a term on this page.
@@ -456,8 +456,8 @@ function taxonomy_overview_terms(&$form_
   $form['#total_entries'] = $total_entries;
   $form['#page_increment'] = $page_increment;
   $form['#page_entries'] = $page_entries;
-  $form['#back_peddle'] = $back_peddle;
-  $form['#forward_peddle'] = $forward_peddle;
+  $form['#backpedal'] = $backpedal;
+  $form['#forwardpedal'] = $forwardpedal;
   $form['#empty_text'] = t('No terms available. <a href="@link">Add term</a>.', array('@link' => url('admin/structure/taxonomy/' . $vocabulary->vid . '/list/add')));
 
   if (!$vocabulary->tags && $vocabulary->hierarchy < 2 && count($tree) > 1) {
@@ -593,15 +593,15 @@ function taxonomy_overview_terms_submit(
 function theme_taxonomy_overview_terms($form) {
   $page_increment  = $form['#page_increment'];
   $page_entries    = $form['#page_entries'];
-  $back_peddle     = $form['#back_peddle'];
-  $forward_peddle  = $form['#forward_peddle'];
+  $backpedal     = $form['#backpedal'];
+  $forwardpedal  = $form['#forwardpedal'];
 
   // Add drag and drop if parent fields are present in the form.
   if ($form['#parent_fields']) {
     drupal_add_tabledrag('taxonomy', 'match', 'parent', 'term-parent', 'term-parent', 'term-id', FALSE);
     drupal_add_tabledrag('taxonomy', 'depth', 'group', 'term-depth', NULL, NULL, FALSE);
     drupal_add_js(drupal_get_path('module', 'taxonomy') . '/taxonomy.js');
-    drupal_add_js(array('taxonomy' => array('backPeddle' => $back_peddle, 'forwardPeddle' => $forward_peddle)), 'setting');
+    drupal_add_js(array('taxonomy' => array('backPeddle' => $backpedal, 'forwardPeddle' => $forwardpedal)), 'setting');
     drupal_add_css(drupal_get_path('module', 'taxonomy') . '/taxonomy.css');
   }
 
@@ -635,15 +635,15 @@ function theme_taxonomy_overview_terms($
     }
 
     // Add classes that mark which terms belong to previous and next pages.
-    if ($row_position < $back_peddle || $row_position >= $page_entries - $forward_peddle) {
+    if ($row_position < $backpedal || $row_position >= $page_entries - $forwardpedal) {
       $rows[$key]['class'][] = 'taxonomy-term-preview';
     }
 
     if ($row_position !== 0 && $row_position !== count($rows) - 1) {
-      if ($row_position == $back_peddle - 1 || $row_position == $page_entries - $forward_peddle - 1) {
+      if ($row_position == $backpedal - 1 || $row_position == $page_entries - $forwardpedal - 1) {
         $rows[$key]['class'][] = 'taxonomy-term-divider-top';
       }
-      elseif ($row_position == $back_peddle || $row_position == $page_entries - $forward_peddle) {
+      elseif ($row_position == $backpedal || $row_position == $page_entries - $forwardpedal) {
         $rows[$key]['class'][] = 'taxonomy-term-divider-bottom';
       }
     }
