summaryrefslogtreecommitdiff
path: root/modules/search/views/search_link.html.php
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2012-12-16 18:56:54 +0100
committershadlaws <shad@shadlaws.com>2012-12-16 18:56:54 +0100
commit768e6fae09c941443e1004e1dfcc42ead9ad9498 (patch)
tree9cdc6c9e7eb8f79d23bf312802b026bbec3f8b2b /modules/search/views/search_link.html.php
parent94b26e506c339f50b8d094057bffc1877a79afa9 (diff)
parent989c24eea3bf01ec621ff3e6ad8a3d58debe0513 (diff)
Merge builds 261 and 262 from origin.
Diffstat (limited to 'modules/search/views/search_link.html.php')
-rw-r--r--modules/search/views/search_link.html.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/search/views/search_link.html.php b/modules/search/views/search_link.html.php
index dd3a76a4..b2eacd4a 100644
--- a/modules/search/views/search_link.html.php
+++ b/modules/search/views/search_link.html.php
@@ -9,4 +9,11 @@
<input type="submit" value="<?= t("Go")->for_html_attr() ?>" class="submit" />
</li>
</ul>
+ <? if (isset($item) && $item instanceof Item_Model_Core): ?>
+ <? if ($item->is_album ()): ?>
+ <input type="hidden" name="album" value="<?= $item->id ?>" />
+ <? else: ?>
+ <input type="hidden" name="album" value="<?= $item->parent_id ?>" />
+ <? endif; ?>
+ <? endif; ?>
</form>