[pLog-svn] r5305 - plog/branches/lifetype-1.2/class/action

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Apr 13 18:40:53 EDT 2007


Author: jondaley
Date: 2007-04-13 18:40:53 -0400 (Fri, 13 Apr 2007)
New Revision: 5305

Modified:
   plog/branches/lifetype-1.2/class/action/searchaction.class.php
Log:
this code has been here forever - maybe it only recently started getting escaped?  Try searching for: don't in non-fulltext searches, and see that it displays don''t (you can't search in fulltext mode, because it won't match anything, unless you have your min_key_len or whatever it is called set low enough

Modified: plog/branches/lifetype-1.2/class/action/searchaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/searchaction.class.php	2007-04-13 22:25:17 UTC (rev 5304)
+++ plog/branches/lifetype-1.2/class/action/searchaction.class.php	2007-04-13 22:40:53 UTC (rev 5305)
@@ -67,9 +67,6 @@
 			                                                        POST_STATUS_PUBLISHED,
 			                                                        false );
 																		
-            // MARKWU: I add the searchterms variable for smarty/plog template
-            $searchTerms = $searchEngine->getAdaptSearchTerms( $this->_searchTerms );			
-            
             // if no search results, return an error message
             if( count($searchResults) == 0 ) {
                 $this->_view = new ErrorView( $this->_blogInfo, "error_no_search_results" );
@@ -102,7 +99,7 @@
             // search terms
             $this->_view->setValue( "searchresults", $searchResults );
             // MARKWU: Now, I can use the searchterms to get the keyword
-            $this->_view->setValue( "searchterms", $searchTerms );
+            $this->_view->setValue( "searchterms", $this->_searchTerms );
             // MARKWU:
 			$config =& Config::getConfig();
             $urlmode = $config->getValue( "request_format_mode" );			



More information about the pLog-svn mailing list