From d185d632a0c5b853d03c08de0ea6d18e7988b54d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 2 Aug 2005 11:49:53 +0000 Subject: [PATCH] small fix & documentation --- includes/Linker.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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}"; -- 2.20.1