r56321 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56320‎ | r56321 | r56322 >
Date:18:21, 14 September 2009
Author:mrzman
Status:ok (Comments)
Tags:
Comment:
fix for r56318, make it work in user talk pages and subpages as well
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser.php
@@ -68,7 +68,8 @@
6969 global $wgOut;
7070 $title = $article->getTitle();
7171 if ( $title->getNamespace() == NS_USER || $title->getNamespace() == NS_USER_TALK ) {
72 - $page = $title->getPrefixedDBkey();
 72+ // Get the title for the base userpage
 73+ $page = Title::makeTitle( NS_USER, str_replace( ' ', '_', $title->getBaseText() ) )->getPrefixedDBkey();
7374 LogEventsList::showLogExtract( $wgOut, 'renameuser', $page, '', 10, array(), false, 'renameuser-renamed-notice' );
7475 }
7576 return true;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r56318Use the new ShowMissingArticle hook (r56317) to show the rename log on userpa...mrzman18:11, 14 September 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   23:24, 30 September 2009

Note the str_replace is unnecessary.

Status & tagging log