<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -271,11 +271,16 @@ Note that your database is never changed by anything Ultrasphinx does.
     end
         
     # Returns the last available page number in the result set.  
-    def page_count
+    def total_pages
       require_run    
       (total_entries / per_page.to_f).ceil
     end
-            
+
+    # to keep backward compatibility with previous version
+    def page_count
+      total_pages
+    end
+         
     # Returns the previous page number.
     def previous_page 
       current_page &gt; 1 ? (current_page - 1) : nil
@@ -283,7 +288,7 @@ Note that your database is never changed by anything Ultrasphinx does.
 
     # Returns the next page number.
     def next_page
-      current_page &lt; page_count ? (current_page + 1) : nil
+      current_page &lt; total_pages ? (current_page + 1) : nil
     end
     
     # Returns the global index position of the first result on this page.</diff>
      <filename>lib/ultrasphinx/search.rb</filename>
    </modified>
    <modified>
      <diff>@@ -76,7 +76,7 @@ class SearchTest &lt; Test::Unit::TestCase
     assert_equal @page - 1, @s.previous_page
     assert_equal @page + 1, @s.next_page
     assert_equal @per_page * (@page - 1), @s.offset
-    assert @s.page_count &gt;= @s.total_entries / @per_page.to_f
+    assert @s.total_pages &gt;= @s.total_entries / @per_page.to_f
    end
   
   def test_empty_query</diff>
      <filename>test/integration/search_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>79378a16423571b9d229e9b30d7de46efec5c5e2</id>
    </parent>
  </parents>
  <author>
    <name>DrMark</name>
    <login>DrMark</login>
    <email>drmark@gmail.com</email>
  </author>
  <url>http://github.com/DrMark/ultrasphinx/commit/cbe4ef9b00c59e3670e60965595a7c9aa164f914</url>
  <id>cbe4ef9b00c59e3670e60965595a7c9aa164f914</id>
  <committed-date>2008-05-27T20:28:15-07:00</committed-date>
  <authored-date>2008-05-27T20:28:15-07:00</authored-date>
  <message>updating the code to work with the latest will_paginate</message>
  <tree>a5853fb6bb3734a9159977c0240ceefab035bbd5</tree>
  <committer>
    <name>DrMark</name>
    <login>DrMark</login>
    <email>drmark@gmail.com</email>
  </committer>
</commit>
