*Default selected type to 'edit'
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Mar 2007 20:06:45 +0000 (20:06 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Mar 2007 20:06:45 +0000 (20:06 +0000)
includes/SpecialProtectedpages.php

index 91c978a..d7d914d 100644 (file)
@@ -93,6 +93,7 @@ class ProtectedPagesForm {
         */
        function showOptions( $namespace, $type, $level ) {
                global $wgScript;
+               $type = ( $type ) ? $type : 'edit';
                $action = htmlspecialchars( $wgScript );
                $title = SpecialPage::getTitleFor( 'ProtectedPages' );
                $special = htmlspecialchars( $title->getPrefixedDBkey() );