Skip to content

Commit

Permalink
[333] Display decoded search string in item search results page
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadez committed Jul 29, 2010
1 parent a387e63 commit 81e2095
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _layout/items/filters.xsl
Expand Up @@ -1185,7 +1185,7 @@

theCounter = 0;
searchText = "black"
document.getElementById('searchQuery').value="<xsl:value-of select="searchResults/@searchText" />";
document.getElementById('searchQuery').value="<xsl:value-of select="searchResults/@searchString" />";


//on enter make it submit the form
Expand Down
2 changes: 1 addition & 1 deletion includes/revision_nr.php
@@ -1,5 +1,5 @@
<?php
define('ARMORY_REVISION', 332);
define('ARMORY_REVISION', 333);
define('DB_VERSION', 'armory_r307');
define('CONFIG_VERSION', 1107201001);
?>
4 changes: 2 additions & 2 deletions search.php
Expand Up @@ -3,7 +3,7 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 329
* @revision 333
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
Expand Down Expand Up @@ -146,7 +146,7 @@

$searchType = (isset($_GET['searchType'])) ? $_GET['searchType'] : 'characters';
$xml->XMLWriter()->startElement('searchResults');
$results_info = array('pageCount' => 1, 'pageCurrent' => 1, 'searchError' => null, 'searchMsg' => null, 'searchFilter' => null, 'searchText' => urlencode($search->searchQuery), 'searchType' => $searchType, 'url' => 'searchType='.$searchType.'&amp;searchQuery='.$search->searchQuery, 'version' => '1.0');
$results_info = array('pageCount' => 1, 'pageCurrent' => 1, 'searchError' => null, 'searchMsg' => null, 'searchFilter' => null, 'searchText' => urlencode($search->searchQuery), 'searchString' => $search->searchQuery, 'searchType' => $searchType, 'url' => 'searchType='.$searchType.'&amp;searchQuery='.$search->searchQuery, 'version' => '1.0');
foreach($results_info as $result_key => $result_value) {
$xml->XMLWriter()->writeAttribute($result_key, $result_value);
}
Expand Down

0 comments on commit 81e2095

Please sign in to comment.