From: Alex Monk Date: Thu, 27 Nov 2014 20:29:06 +0000 (+0000) Subject: Include anchor in group page wiki link X-Git-Tag: 1.31.0-rc.0~13143 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=d02a4d3a7a788004807194f391cd62ee423d3b5f;p=lhc%2Fweb%2Fwiklou.git Include anchor in group page wiki link We effectively did this when outputting an HTML link in the function above, but not for the wiki text version. Just use getFullText instead of getPrefixedText, which handles adding anchors where necessary and nothing else. Bug: T75959 Change-Id: I1a4aa46d26e738c2a97e41463231da632e4ca8e5 --- diff --git a/includes/User.php b/includes/User.php index 16a78f6792..5348020089 100644 --- a/includes/User.php +++ b/includes/User.php @@ -4476,7 +4476,7 @@ class User implements IDBAccessObject { } $title = self::getGroupPage( $group ); if ( $title ) { - $page = $title->getPrefixedText(); + $page = $title->getFullText(); return "[[$page|$text]]"; } else { return $text;