]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
picwall: link directly to the target URL (not the permalink) 156/head
authornodiscc <nodiscc@gmail.com>
Sat, 7 Mar 2015 23:53:05 +0000 (00:53 +0100)
committernodiscc <nodiscc@gmail.com>
Wed, 11 Mar 2015 18:19:18 +0000 (19:19 +0100)
index.php
tpl/picwall.html

index 066058e617d651e01297abb2515b3573cd06fc50..6189e0b82c9ff4b919f65f2ef54ad1b34ff12535 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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.
             }
         }
index ea1ef420d1123d3bda5d1489e4f03ad6972991ec..e686afe18a806272aea673dbf41c1eeb4ee28247 100644 (file)
@@ -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>