corrected query string in results instead of page
git-svn-id: http://yolanda.mister-muffin.de/svn@351 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
parent
1201ba9daa
commit
9642cf2bba
1 changed files with 4 additions and 2 deletions
|
@ -26,13 +26,15 @@ if($query->param('query'))
|
||||||
{
|
{
|
||||||
#fill xml with search results
|
#fill xml with search results
|
||||||
$page->appendChild(fill_results($dbquery, @args));
|
$page->appendChild(fill_results($dbquery, @args));
|
||||||
$page->setAttribute('query', $query->param('query'));
|
|
||||||
|
|
||||||
$doc->setDocumentElement($page);
|
$doc->setDocumentElement($page);
|
||||||
|
|
||||||
#get all results
|
#get all found results
|
||||||
my @results = $doc->findnodes( "//results/result" );
|
my @results = $doc->findnodes( "//results/result" );
|
||||||
|
|
||||||
|
#set result query in result's parent
|
||||||
|
$results[0]->parentNode->setAttribute('query', $query->param('query'));
|
||||||
|
|
||||||
#if result count is zero
|
#if result count is zero
|
||||||
if($#results == -1)
|
if($#results == -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue