From: Antoine Musso Date: Tue, 16 Mar 2004 14:25:09 +0000 (+0000) Subject: Fix source forge bug 803693 X-Git-Tag: 1.3.0beta1~781 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f65c2c46011d593b4750584c832dbe1553073245;p=lhc%2Fweb%2Fwiklou.git Fix source forge bug 803693 When a title is given in a == == headline, the html was incorectly generated as: link It now generates: link --- diff --git a/includes/Parser.php b/includes/Parser.php index 5e5a7d96e6..39cbff5c92 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1289,13 +1289,22 @@ class Parser $head[$c].=$sk->editSectionLink($c+1); } - // Put it all together - $head[$c].="" - .$headline - ."" - .""; + // the headline might have a link + if(preg_match("/(.*)" + .$headline + .""; + } + + // give headline the correct tag + $head[$c].=""; // Add the edit section link