summaryrefslogtreecommitdiff
path: root/modules/search/views/search.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-18 10:08:03 -0800
committerBharat Mediratta <bharat@menalto.com>2013-02-18 10:08:03 -0800
commit788e9662268c6d4f518886fcb774a221076c5deb (patch)
tree1a1536de4a303818cf4df908f064341b8fc5b399 /modules/search/views/search.html.php
parentafa61f9d0d551bc2a0c4fa903eb3f55742720c8d (diff)
parent58c137c98183377c8bacaad83c9b32caa9925fa2 (diff)
Merge pull request #149 from shadlaws/fix_2007
#2007 - Change search box text when only looking in the current album.
Diffstat (limited to 'modules/search/views/search.html.php')
-rw-r--r--modules/search/views/search.html.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/search/views/search.html.php b/modules/search/views/search.html.php
index f1906744..a42c31dd 100644
--- a/modules/search/views/search.html.php
+++ b/modules/search/views/search.html.php
@@ -7,7 +7,11 @@
</legend>
<ul>
<li>
- <label for="q"><?= t("Search the gallery") ?></label>
+ <? if ($album->id == item::root()->id): ?>
+ <label for="q"><?= t("Search the gallery") ?></label>
+ <? else: ?>
+ <label for="q"><?= t("Search this album") ?></label>
+ <? endif; ?>
<input name="album" type="hidden" value="<?= html::clean_attribute($album->id) ?>" />
<input name="q" id="q" type="text" value="<?= html::clean_attribute($q) ?>" class="text" />
</li>