fixing r65546: move variable decleration up
authorTobias <churchofemacs@users.mediawiki.org>
Wed, 28 Apr 2010 21:43:23 +0000 (21:43 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Wed, 28 Apr 2010 21:43:23 +0000 (21:43 +0000)
includes/specials/SpecialContributions.php

index 9f5219f..17aaec8 100644 (file)
@@ -34,6 +34,8 @@ class SpecialContributions extends SpecialPage {
                        $this->opts['contribs'] = 'newbie';
                }
 
+               $this->opts['deletedOnly'] = ( $wgRequest->getVal( 'deletedOnly' ) == '1' );
+
                if( !strlen( $target ) ) {
                        $wgOut->addHTML( $this->getForm() );
                        return;
@@ -64,8 +66,6 @@ class SpecialContributions extends SpecialPage {
                        $this->opts['namespace'] = '';
                }
 
-               $this->opts['deletedOnly'] = ( $wgRequest->getVal( 'deletedOnly' ) == '1' );
-
                $this->opts['tagfilter'] = (string) $wgRequest->getVal( 'tagfilter' );
        
                // Allows reverts to have the bot flag in recent changes. It is just here to