Author: jablko
Date: Thu Aug 27 13:38:58 2009
New Revision: 3095

Log:
Cosmetic changes

Modified:
   trunk/apps/qubit/modules/search/actions/searchAction.class.php

Modified: trunk/apps/qubit/modules/search/actions/searchAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 13:35:27 2009        (r3094)
+++ trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 13:38:58 2009        (r3095)
@@ -30,8 +30,6 @@
     
Zend_Search_Lucene_Analysis_Analyzer::setDefault(SearchIndex::getIndexAnalyzer());
     Zend_Search_Lucene_Search_QueryParser::setDefaultEncoding('utf-8');
 
-    $this->hits = array();
-
     $search = new QubitSearch;
 
     $query = new Zend_Search_Lucene_Search_Query_Boolean;
@@ -42,17 +40,6 @@
     $query->addSubquery($c, true);
     $this->hits = $search->getEngine()->getIndex()->find($query);
 
-    // send results through pagination
-    if ($this->getRequestParameter('page'))
-    {
-      $page = $this->getRequestParameter('page');
-    }
-    else
-    {
-      //set default page
-      $page = 1;
-    }
-
-    $this->results = new QubitSearchPager($this->hits, $page);
+    $this->results = new QubitSearchPager($this->hits, $request->page);
   }
 }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to