r28539 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28538‎ | r28539 | r28540 >
Date:14:59, 16 December 2007
Author:rotem
Status:old
Tags:
Comment:
Added link to the old title in Special:Movepage, change proposed by Agbad@hewiki.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMovepage.php
@@ -78,6 +78,8 @@
7979 $wgOut->showErrorPage( 'notargettitle', 'notargettext' );
8080 return;
8181 }
 82+ $sk = $wgUser->getSkin();
 83+ $oldTitleLink = $sk->makeLinkObj( $ot );
8284 $oldTitle = $ot->getPrefixedText();
8385
8486 $encOldTitle = htmlspecialchars( $oldTitle );
@@ -151,7 +153,7 @@
152154 <table border='0'>
153155 <tr>
154156 <td align='$end'>{$movearticle}</td>
155 - <td align='$start'><strong>{$oldTitle}</strong></td>
 157+ <td align='$start'><strong>{$oldTitleLink}</strong></td>
156158 </tr>
157159 <tr>
158160 <td align='$end'><label for='wpNewTitle'>{$newtitle}</label></td>
Index: trunk/phase3/RELEASE-NOTES
@@ -98,6 +98,7 @@
9999 * Special:Upload now lists permitted/prohibited file extensions.
100100 * Split ambiguous filetype-badtype message into two new messages,
101101 filetype-unwanted-type and filetype-banned-type.
 102+* Added link to the old title in Special:Movepage
102103
103104 === Bug fixes in 1.12 ===
104105

Status & tagging log