From b9e0875a71f5238c95c9ad7e4d3a8f9c1f61ce8f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 21 Mar 2007 20:06:45 +0000 Subject: [PATCH] *Default selected type to 'edit' --- includes/SpecialProtectedpages.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/SpecialProtectedpages.php b/includes/SpecialProtectedpages.php index 91c978a860..d7d914d652 100644 --- a/includes/SpecialProtectedpages.php +++ b/includes/SpecialProtectedpages.php @@ -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() ); -- 2.20.1