Index: avatar_selection.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/avatar_selection/avatar_selection.module,v
retrieving revision 1.1.2.22.2.43
diff -u -p -r1.1.2.22.2.43 avatar_selection.module
--- avatar_selection.module 7 Jul 2008 14:07:41 -0000 1.1.2.22.2.43
+++ avatar_selection.module 10 Jul 2008 15:59:47 -0000
@@ -549,9 +549,9 @@ function theme_avatar_selection_pager($f

   // Calculate various markers within this pager piece:
   // Middle is used to "center" pages around the current page.
-  $middle_page = ceil($total_pages / 2);
+  $middle_page = 5;
   $first_page = $current_page - $middle_page + 1;
-  $last_page = $current_page + $total_pages - $middle_page;
+  $last_page = $current_page + $middle_page + 1;

   $output = '<div class="avatar_selection_pager_nav">';
   if ($current_page > 0) {
@@ -560,13 +560,15 @@ function theme_avatar_selection_pager($f
   }

   $i = $first_page;
+
+  // Adjust "center" if at end of query.
   if ($last_page > $total_pages) {
-    // Adjust "center" if at end of query.
     $i = $i + ($total_pages - $last_page);
     $last_page = $total_pages;
   }
+
+  // Adjust "center" if at start of query.
   if ($i <= 0) {
-    // Adjust "center" if at start of query.
     $last_page = $last_page + (1 - $i);
     $i = 1;
   }
