summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-05-31 23:28:42 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-05-31 23:28:42 -0700
commit3c24d9476618496c8f2e1ca2f6025fa157120e43 (patch)
treee3d8b381098affa3081cc95cd74ebeabef972ab3 /modules/search
parent463b3454ae7633815e24cdf86e81c57409dd15a9 (diff)
parent79a05adb9d941671cefbdf6b1cc97f0cd84fabf3 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/views/search.html.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/search/views/search.html.php b/modules/search/views/search.html.php
index fb1fd8a9..de4343ae 100644
--- a/modules/search/views/search.html.php
+++ b/modules/search/views/search.html.php
@@ -8,7 +8,7 @@
<ul>
<li>
<label for="q"><?= t("Search the gallery") ?></label>
- <input name="q" id="q" type="text" value="<?= $q ?>"/>
+ <input name="q" id="q" type="text" value="<?= p::clean($q) ?>"/>
</li>
<li>
<input type="submit" value="<?= t("Search") ?>" />
@@ -31,10 +31,10 @@
<a href="<?= url::site("items/$item->id") ?>">
<?= $item->thumb_tag() ?>
<p>
- <?= $item->title ?>
+ <?= p::clean($item->title) ?>
</p>
<div>
- <?= $item->description ?>
+ <?= p::clean($item->description) ?>
</div>
</a>
</li>
@@ -43,7 +43,9 @@
<?= $theme->pager() ?>
<? else: ?>
- <p><?= t("No results found for '") . $q . "'" ?></p>
+ <p>
+ <?= t("No results found for <b>%term</b>", array("term" => p::clean($q))) ?>
+ </p>
<? endif; ?>
</div>