r19085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19084‎ | r19085 | r19086 >
Date:19:22, 10 January 2007
Author:simetrical
Status:old
Tags:
Comment:
(bug 8565) Gracefully degrade for pre-1.9alpha
Modified paths:
  • /trunk/extensions/Renameuser/SpecialRenameuser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php
@@ -52,7 +52,7 @@
5353 <td align='right'>$renameusernew </td>
5454 <td align='left'><input tabindex='2' type='text' size='20' name='newusername' value=\"$nun\"/></td>
5555 </tr>" );
56 - if ( $wgUser->isAllowed( 'move' ) ) {
 56+ if ( $wgUser->isAllowed( 'move' ) && version_compare( $wgVersion, '1.9alpha', '>=' ) ) {
5757 $wgOut->addHTML( "
5858 <tr>
5959 <td>&nbsp;</td>
@@ -129,7 +129,7 @@
130130
131131 $wgOut->addWikiText( wfMsg( 'renameusersuccess', $oldusername->getText(), $newusername->getText() ) );
132132
133 - if ( $wgRequest->getCheck( 'movepages' ) && $wgUser->isAllowed( 'move' ) ) {
 133+ if ( $wgRequest->getCheck( 'movepages' ) && $wgUser->isAllowed( 'move' ) && version_compare( $wgVersion, '1.9alpha', '>=' ) ) {
134134 $dbr =& wfGetDB( DB_SLAVE );
135135 $pages = $dbr->select(
136136 'page',