* value in consideration.
* @param Title $title The page
* @param array $parameters Query parameters
+ * @param string|null $html Linktext of the link as raw html
* @throws MWException
* @return string
*/
- protected function makePageLink( Title $title = null, $parameters = array() ) {
+ protected function makePageLink( Title $title = null, $parameters = array(), $html = null ) {
if ( !$this->plaintext ) {
- $link = Linker::link( $title, null, array(), $parameters );
+ $link = Linker::link( $title, $html, array(), $parameters );
} else {
if ( !$title instanceof Title ) {
throw new MWException( "Expected title, got null" );
* @since 1.21
*/
class RightsLogFormatter extends LogFormatter {
- protected function makePageLink( Title $title = null, $parameters = array() ) {
+ protected function makePageLink( Title $title = null, $parameters = array(), $html = null ) {
global $wgContLang, $wgUserrightsInterwikiDelimiter;
if ( !$this->plaintext ) {
if ( count( $parts ) === 2 ) {
$titleLink = WikiMap::foreignUserLink( $parts[1], $parts[0],
- htmlspecialchars( $title->getPrefixedText() ) );
+ htmlspecialchars( $title->getText() ) );
if ( $titleLink !== false ) {
return $titleLink;
}
}
- return parent::makePageLink( $title, $parameters );
+ return parent::makePageLink( $title, $parameters, $title ? $title->getText() : null );
}
protected function getMessageKey() {
),
),
array(
- 'text' => 'Sysop changed group membership for User:User from (none) to '
+ 'text' => 'Sysop changed group membership for User from (none) to '
. 'administrator and bureaucrat',
'api' => array(
'oldgroups' => array(),
),
array(
'legacy' => true,
- 'text' => 'Sysop changed group membership for User:User from (none) to '
+ 'text' => 'Sysop changed group membership for User from (none) to '
. 'administrator and bureaucrat',
'api' => array(
'oldgroups' => array(),
),
array(
'legacy' => true,
- 'text' => 'Sysop changed group membership for User:User',
+ 'text' => 'Sysop changed group membership for User',
'api' => array(),
),
),