From: joey Date: Sat, 11 Mar 2006 04:33:35 +0000 (+0000) Subject: recentchanges X-Git-Tag: 1.0~514 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1b90621e4fb187fe6f08b23083b5d1f57ee53b6;p=ikiwiki.git recentchanges --- diff --git a/ikiwiki b/ikiwiki index 1b282abf9..b9acc10b5 100755 --- a/ikiwiki +++ b/ikiwiki @@ -167,9 +167,10 @@ sub isinlinableimage ($) { $file=~/\.(png|gif|jpg|jpeg)$/; } -sub htmllink ($$) { +sub htmllink { my $page=shift; my $link=shift; + my $noimagelink=shift; my $bestlink=bestlink($page, $link); @@ -188,7 +189,7 @@ sub htmllink ($$) { $bestlink=File::Spec->abs2rel($bestlink, dirname($page)); - if (isinlinableimage($bestlink)) { + if (! $noimagelink && isinlinableimage($bestlink)) { return ""; } return "$link"; @@ -644,10 +645,10 @@ sub cgi () { my $list="