Skip to content

Commit

Permalink
picwall: link directly to the target URL (not the permalink)
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Mar 11, 2015
1 parent 3ef1da2 commit 4a1a119
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,6 @@ function renderPage()
if ($thumb!='') // Only output links which have a thumbnail.
{
$link['thumbnail']=$thumb; // Thumbnail HTML code.
$link['permalink']=$permalink;
$linksToDisplay[]=$link; // Add to array.
}
}
Expand Down
2 changes: 1 addition & 1 deletion tpl/picwall.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div id="picwall_container">
{loop="linksToDisplay"}
<div class="picwall_pictureframe">
{$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a>
{$value.thumbnail}<a href="{$value.url}"><span class="info">{$value.title|htmlspecialchars}</span></a>
</div>
{/loop}
</div>
Expand Down

0 comments on commit 4a1a119

Please sign in to comment.