? sites/default/settings.php
Index: modules/blogapi/blogapi.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v
retrieving revision 1.135
diff -u -p -r1.135 blogapi.module
--- modules/blogapi/blogapi.module	5 Dec 2008 12:50:27 -0000	1.135
+++ modules/blogapi/blogapi.module	5 Dec 2008 15:51:50 -0000
@@ -499,7 +499,7 @@ function blogapi_metaweblog_get_category
   $categories = array();
   if ($vocabularies) {
     foreach ($vocabularies as $vocabulary) {
-      $terms = module_invoke('taxonomy', 'get_tree', $vocabulary->vid, 0, -1);
+      $terms = module_invoke('taxonomy', 'get_tree', $vocabulary->vid);
       foreach ($terms as $term) {
         $term_name = $term->name;
         foreach (module_invoke('taxonomy', 'get_parents', $term->tid, 'tid') as $parent) {
Index: modules/taxonomy/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.module,v
retrieving revision 1.444
diff -u -p -r1.444 taxonomy.module
--- modules/taxonomy/taxonomy.module	5 Dec 2008 12:50:28 -0000	1.444
+++ modules/taxonomy/taxonomy.module	5 Dec 2008 15:51:50 -0000
@@ -823,18 +823,18 @@ function taxonomy_get_children($tid, $vi
  *   The term ID under which to generate the tree. If 0, generate the tree
  *   for the entire vocabulary.
  *
- * @param $depth
- *   Internal use only.
- *
  * @param $max_depth
  *   The number of levels of the tree to return. Leave NULL to return all levels.
  *
+ * @param $depth
+ *   Internal use only.
+ *
  * @return
  *   An array of all term objects in the tree. Each term object is extended
  *   to have "depth" and "parents" attributes in addition to its normal ones.
  *   Results are statically cached.
  */
-function taxonomy_get_tree($vid, $parent = 0, $depth = -1, $max_depth = NULL) {
+function taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $depth = -1) {
   static $children, $parents, $terms;
 
   $depth++;
@@ -865,7 +865,7 @@ function taxonomy_get_tree($vid, $parent
         $tree[] = $term;
 
         if (!empty($children[$vid][$child])) {
-          $tree = array_merge($tree, taxonomy_get_tree($vid, $child, $depth, $max_depth));
+          $tree = array_merge($tree, taxonomy_get_tree($vid, $child, $max_depth, $depth));
         }
       }
     }
@@ -1152,7 +1152,7 @@ function taxonomy_select_nodes($tids = a
     }
     foreach ($tids as $index => $tid) {
       $term = taxonomy_get_term_data($tid);
-      $tree = taxonomy_get_tree($term->vid, $tid, -1, $depth);
+      $tree = taxonomy_get_tree($term->vid, $tid, $depth);
       $descendant_tids[] = array_merge(array($tid), array_map('_taxonomy_get_tid_from_term', $tree));
     }
 
