Author: jablko
Date: Wed Oct 27 16:53:37 2010
New Revision: 8575

Log:
Suppress notice

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

Modified: trunk/apps/qubit/modules/search/actions/indexAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/search/actions/indexAction.class.php       Wed Oct 
27 15:18:30 2010        (r8574)
+++ trunk/apps/qubit/modules/search/actions/indexAction.class.php       Wed Oct 
27 16:53:37 2010        (r8575)
@@ -26,13 +26,12 @@
       $request->limit = sfConfig::get('app_hits_per_page');
     }
 
-    $this->resource = $this->getRoute()->resource;
-    if (isset($this->resource) && 'QubitRepository' == 
get_class($this->resource))
+    if (isset($this->getRoute()->resource) && $this->getRoute()->resource 
instanceof QubitRepository)
     {
-      $request->query .= ' and 
repository:"'.$this->resource->authorizedFormOfName.'"';
+      $request->query .= " and 
repository:'$this->resource->authorizedFormOfName'";
     }
 
-    $this->response->setTitle('Search for "'.$request->query.'" - 
'.$this->response->getTitle());
+    $this->response->setTitle("Search for \"$request->query\" - 
{$this->response->getTitle()}");
 
     xfLuceneZendManager::load();
     
Zend_Search_Lucene_Analysis_Analyzer::setDefault(SearchIndex::getIndexAnalyzer());

-- 
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.com/group/qubit-commits?hl=en.

Reply via email to