r35163 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35162‎ | r35163 | r35164 >
Date:23:23, 21 May 2008
Author:vyznev
Status:old
Tags:
Comment:
Add new option "moveonly" to forbid moves but allow ordinary creation (should be good against pagemove vandalism).
Modified paths:
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.list.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
@@ -206,6 +206,9 @@
207207 if( isset( $this->mParams['autoconfirmed'] ) && $user->isAllowed( 'autoconfirmed' ) ) {
208208 return true;
209209 }
 210+ if( isset( $this->mParams['moveonly'] ) && $action != 'move' ) {
 211+ return true;
 212+ }
210213 if( !isset( $this->mParams['noedit'] ) && $action == 'edit' ) {
211214 return true;
212215 }
@@ -237,6 +240,9 @@
238241 if( $opt2 == 'autoconfirmed' ) {
239242 $options['autoconfirmed'] = true;
240243 }
 244+ if( $opt2 == 'moveonly' ) {
 245+ $options['moveonly'] = true;
 246+ }
241247 if( $opt2 == 'noedit' ) {
242248 $options['noedit'] = true;
243249 }

Status & tagging log