Recent Changes - Search:

PITS main list

edit sidebar

Main sidebar

PmWiki

pmwiki.org

00897

Summary: (:searchresults options:) bug
Created: 2007-03-02 04:32
Status: Open
Category: Bug
From: Francis
Assigned:
Priority: 432
Version: 2.2.0.beta31
OS:

Description: Using options for searchresults causes the options to be returned in the search query repetition.

e.g.

(:searchresults group=main fmt=#search:)

Results in the text Results of search for group=main fmt=#search your text

Solution:

I fixed this by editing the following line in pagelist.php

  • 'SearchFor' => 'Results of search for <em>$Needle</em>:',
    • becomes
      • 'SearchFor' => 'Results of search for <em>$SearchQuery</em>:',

Better solution

Add to config.php: XLSDV('en', array('SearchFor' => 'Results of search for <em>$SearchQuery</em>:')); ...and fix any language packs you have installed. This will then survive any core PmWiki updates.

Another place where this fails

http://www.pmwiki.org/wiki/Test/SearchParamsLeak

$Needle gets "dirtied" by the sub-pagelist parameter.

Edit - History - Print - Recent Changes - Search
Page last modified on February 24, 2010, at 08:24 PM