Menu

#124 Allow [img|txt] [img1|img2] [txt|img]

1.3.x
open
nobody
None
5
2012-10-11
2005-11-05
No

with this little patch i can use links
[http://myserv/img/img1_thumb.jpg|http://myserv/img/img1.jpg]
or [click to see my image|http://myserv/img/myimage.jpg]


phpwiki_1.3.11/phpwiki-1.3.11p1/lib/InlineParser.php
2005-09-14 07:57:19.000000000 +0200
+++ phpwiki-1.3.11p1/lib/InlineParser.php
2005-11-05 13:53:07.000000000 +0100
@@ -381,7 +381,7 @@

 if (preg_match("#^(" . ALLOWED_PROTOCOLS . "):#",

$link)) {
// if it's an image, embed it; otherwise, it's
a regular link
- if (isImageLink($link))
+ if (isImageLink($link) && !$label)
return LinkImage($link, $label);
else
return new Cached_ExternalLink($link, $label);

regards,
Robert Litwiniec

Discussion


Log in to post a comment.