#322 ImageLinks broken in 1.3.10

Linking
closed
Reini Urban
9
2012-10-11
2004-05-18
Reini Urban
No

Whenever you try to a an image src into square brackets
InlineParser.php will fail.

Either use the current CVS version or apply this patch:

$ diff -bu ../../phpwiki-1.3.10/lib/InlineParser.php
InlineParser.php
--- ../../phpwiki-1.3.10/lib/InlineParser.php
2004-05-13 14:48:34.000000000 +0100
+++ InlineParser.php 2004-05-18 17:46:55.203125000 +0100
@@ -340,6 +340,7 @@
// if label looks like a url to an image, we want
an image link.
if (isImageLink($label)) {
$imgurl = $label;
+ $intermap = getInterwikiMap();
if (preg_match("/^" . $intermap->getRegexp() .
":/", $label)) {
$imgurl = $intermap->link($label);
$imgurl = $imgurl->getAttr('href');

Discussion