? 140984.patch
Index: views_alpha_pager.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views_alpha_pager/views_alpha_pager.module,v
retrieving revision 1.5.2.20
diff -u -r1.5.2.20 views_alpha_pager.module
--- views_alpha_pager.module	5 May 2007 12:06:47 -0000	1.5.2.20
+++ views_alpha_pager.module	5 May 2007 12:30:19 -0000
@@ -186,7 +186,11 @@
   $query->orderby = array_merge(array($myfield), $query->orderby);
 
   // save the pager so we can add it to the top and bottom easily
-  $view->alpha_pager_output = theme('alpha_pager', $items, $apage, $_GET['q'], drupal_query_string_encode($_GET, array('q', 'apage')));
+  $link = isset($view->alpha_pager_link) ? $view->alpha_pager_link : array(
+    'href' => $_GET['q'],
+    'query' => drupal_query_string_encode($_GET, array('q', 'apage'))
+  );
+  $view->alpha_pager_output = theme('alpha_pager', $items, $apage, $link);
 }
 
 function _views_alpha_pager_build_query(&$view) {
@@ -232,7 +236,7 @@
   return $subject;
 }
 
-function theme_alpha_pager($items, $current = '', $path = '', $query = '') {
+function theme_alpha_pager($items, $current = '', $link = array()) {
   // add style sheet
   $modpath = drupal_get_path('module', 'views_alpha_pager');
   drupal_add_css($modpath .'/views_alpha_pager.css', 'module');
@@ -252,7 +256,7 @@
         else {
           $class = 'pager-next';
         }
-        $output .= theme_alpha_pager_link($item, $item_display, array('class' => $class), $path, $query);
+        $output .= theme_alpha_pager_link($item, $item_display, array('class' => $class), $link);
       }
       $output .= ' ';
     }
@@ -262,11 +266,11 @@
   }
 }
 
-function theme_alpha_pager_link($item, $item_display, $attributes = array(), $path = '', $query = '') {
-  if ($query != '') {
-    $query .= '&';
+function theme_alpha_pager_link($item, $item_display, $attributes = array(), $link = array()) {
+  if ($link['query'] != '') {
+    $link['query'] .= '&';
   }
-  $query .= 'apage='. $item;
+  $link['query'] .= 'apage='. $item;
   $attributes['title'] = t('Go to @page listings', array('@page' => $item));
-  return l($item_display, $path, $attributes, $query);
+  return l($item_display, $link['href'], $attributes, $link['query']);
 }
