http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82823

Revision: 82823
Author:   bawolff
Date:     2011-02-26 00:35:45 +0000 (Sat, 26 Feb 2011)
Log Message:
-----------
revert 70005 - Causes bug where if a revision is imported on an already 
existing page, special:nuke
will delete the whole page, where it is expected to only delete the page if the 
user is only one to contribute.

Also breaks listing file uploads (reported by Manuelt15 on irc).

Modified Paths:
--------------
    trunk/extensions/Nuke/Nuke_body.php

Modified: trunk/extensions/Nuke/Nuke_body.php
===================================================================
--- trunk/extensions/Nuke/Nuke_body.php 2011-02-25 23:33:16 UTC (rev 82822)
+++ trunk/extensions/Nuke/Nuke_body.php 2011-02-26 00:35:45 UTC (rev 82823)
@@ -202,7 +202,7 @@
                        'COUNT(*) AS edits'
                );              
                
-               $where = array( "(rc_new = 1) OR (rc_log_type = 'import' AND 
rc_log_action = 'upload')" );
+               $where = array( "(rc_new = 1) OR (rc_log_type = 'upload' AND 
rc_log_action = 'upload')" );
                
                if ( $username == '' ) {
                        $what[] = 'rc_user_text';


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to