Index: apachesolr.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.module,v
retrieving revision 1.1.2.12.2.160
diff -u -p -r1.1.2.12.2.160 apachesolr.module
--- apachesolr.module	14 Aug 2009 16:26:10 -0000	1.1.2.12.2.160
+++ apachesolr.module	17 Aug 2009 16:07:22 -0000
@@ -706,7 +706,7 @@ function apachesolr_facet_block($respons
       // Get information needed by the rest of the blocks about limits.
       $initial_limits = variable_get('apachesolr_facet_query_initial_limits', array());
       $limit = isset($initial_limits[$module][$delta]) ? $initial_limits[$module][$delta] : variable_get('apachesolr_facet_query_initial_limit_default', 10);
-      $output = theme('apachesolr_facet_list', $items, $limit);
+      $output = theme('apachesolr_facet_list', $items, $limit, $delta);
       return array('subject' => $filter_by, 'content' => $output);
     }
   }
@@ -778,7 +778,7 @@ function apachesolr_date_facet_block($re
     // Get information needed by the rest of the blocks about limits.
     $initial_limits = variable_get('apachesolr_facet_query_initial_limits', array());
     $limit = isset($initial_limits[$module][$delta]) ? $initial_limits[$module][$delta] : variable_get('apachesolr_facet_query_initial_limit_default', 10);
-    $output = theme('apachesolr_facet_list', $items, $limit);
+    $output = theme('apachesolr_facet_list', $items, $limit, $delta);
     return array('subject' => $filter_by, 'content' => $output);
   }
   return NULL;
@@ -1240,7 +1240,7 @@ function apachesolr_theme() {
      * Returns a list of links from the above functions (apachesolr_facet_item and apachesolr_unclick_link)
      */
     'apachesolr_facet_list' => array(
-      'arguments' => array('items' => NULL),
+      'arguments' => array('items' => NULL, 'display_limit' => 0, 'delta' => ''),
     ),
     /**
      * Returns a list of links generated by apachesolr_sort_link
@@ -1437,7 +1437,7 @@ function theme_apachesolr_sort_link($tex
   return $icon . apachesolr_l($text, $path, $options);
 }
 
-function theme_apachesolr_facet_list($items, $display_limit = 0) {
+function theme_apachesolr_facet_list($items, $display_limit = 0, $delta = '') {
   // theme('item_list') expects a numerically indexed array.
   $items = array_values($items);
   // If there is a limit and the facet count is over the limit, hide the rest.
Index: apachesolr_search.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.module,v
retrieving revision 1.1.2.6.2.111
diff -u -p -r1.1.2.6.2.111 apachesolr_search.module
--- apachesolr_search.module	2 Jul 2009 21:58:34 -0000	1.1.2.6.2.111
+++ apachesolr_search.module	17 Aug 2009 16:07:22 -0000
@@ -605,7 +605,7 @@ function apachesolr_search_block($op = '
             $limit = isset($initial_limits['apachesolr_search'][$delta]) ? $initial_limits['apachesolr_search'][$delta] : $limit_default;
             return array(
               'subject' => t('Filter by @name', array('@name' => $vocab->name)),
-              'content' => theme('apachesolr_facet_list', $terms[$vid], $limit),
+              'content' => theme('apachesolr_facet_list', $terms[$vid], $limit, $delta),
             );
           }
           return;
