Author: jablko
Date: Thu Aug 27 13:45:18 2009
New Revision: 3097

Log:
s/$results/$pager

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

Modified: trunk/apps/qubit/modules/search/actions/searchAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 13:44:11 2009        (r3096)
+++ trunk/apps/qubit/modules/search/actions/searchAction.class.php      Thu Aug 
27 13:45:18 2009        (r3097)
@@ -36,6 +36,6 @@
     $query->addSubquery(new Zend_Search_Lucene_Search_Query_Term(new 
Zend_Search_Lucene_Index_Term($culture, 'culture')), true);
     
$query->addSubquery(Zend_Search_Lucene_Search_QueryParser::parse($request->query,
 'UTF-8'), true);
 
-    $this->results = new 
QubitSearchPager($search->getEngine()->getIndex()->find($query), 
$request->page);
+    $this->pager = new 
QubitSearchPager($search->getEngine()->getIndex()->find($query), 
$request->page);
   }
 }

Modified: trunk/apps/qubit/modules/search/templates/searchSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/search/templates/searchSuccess.php Thu Aug 27 
13:44:11 2009        (r3096)
+++ trunk/apps/qubit/modules/search/templates/searchSuccess.php Thu Aug 27 
13:45:18 2009        (r3097)
@@ -1,9 +1,9 @@
 <?php use_helper('Text') ?>
 <?php if ($sf_request->query): ?>
-  <h1 class="search"><?php echo __("Search for '%1%' returned %2% results", 
array('%1%' => $sf_request->query, '%2%' => count($results->allHits))); ?></h1>
+  <h1 class="search"><?php echo __("Search for '%1%' returned %2% results", 
array('%1%' => $sf_request->query, '%2%' => count($pager->allHits))); ?></h1>
 <?php endif; ?>
 
-<?php foreach ($results->getHits() as $hit): ?>
+<?php foreach ($pager->getHits() as $hit): ?>
   <div class="search-results" style="padding-top: 5px;">
 
     <h3><?php echo link_to($hit->display_label, array('module' => 
'informationobject', 'action' => 'show', 'id' => $hit->informationObjectId)) 
?></h3>
@@ -28,4 +28,4 @@
   </div>
 <?php endforeach; ?>
 
-<?php echo get_partial('default/pager', array('pager' => $results)) ?>
+<?php echo get_partial('default/pager', array('pager' => $pager)) ?>

--~--~---------~--~----~------------~-------~--~----~
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