From: Niklas Laxström Date: Tue, 2 Aug 2005 11:49:53 +0000 (+0000) Subject: small fix & documentation X-Git-Tag: 1.6.0~2083 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=d185d632a0c5b853d03c08de0ea6d18e7988b54d;p=lhc%2Fweb%2Fwiklou.git small fix & documentation --- diff --git a/includes/Linker.php b/includes/Linker.php index 81e31e56ce..d4e99d864f 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -221,6 +221,13 @@ class Linker { /** * Pass a title object, not a title string + * @param object Title of target page + * @param string Text to replace the title + * @param string Link target + * @param string Text after link + * @param string Text before link text + * @param string Extra attributes to the a-element + * @return the a-element */ function makeKnownLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '' ) { global $wgTitle; @@ -252,6 +259,8 @@ class Linker { $text = htmlspecialchars( $nt->getPrefixedText() ); } $style = $this->getInternalLinkAttributesObj( $nt, $text ); + + if ( $aprops !== '' ) $aprops = ' ' . $aprops; list( $inside, $trail ) = Linker::splitTrail( $trail ); $r = "{$prefix}{$text}{$inside}{$trail}";