diff options
author | Bharat Mediratta <bharat@menalto.com> | 2012-05-07 11:47:19 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2012-05-07 11:49:41 -0700 |
commit | 11ee6d50acf8849347c2c37dc15697830ff854d0 (patch) | |
tree | 3b6977b91cba33dbf71eaab28c445f4206d72aa8 /modules/image_block/views | |
parent | dc998c9fc78e3304ef896d3ab3356d2a22a68103 (diff) |
Fix a database error caused by trying to view a non-search-result in a
search context. Patch thanks to sermoro. Fixes #1837.
Diffstat (limited to 'modules/image_block/views')
-rw-r--r-- | modules/image_block/views/image_block_block.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image_block/views/image_block_block.html.php b/modules/image_block/views/image_block_block.html.php index 2a57c395..6f68e5b8 100644 --- a/modules/image_block/views/image_block_block.html.php +++ b/modules/image_block/views/image_block_block.html.php @@ -1,7 +1,7 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? foreach ($items as $item): ?> <div class="g-image-block"> - <a href="<?= $item->url() ?>"> + <a href="<?= url::site("image_block/random/" . $item->id); ?>"> <?= $item->thumb_img(array("class" => "g-thumbnail")) ?> </a> </div> |