Removing the additional protection of the system messages in maintenance/InitialiseMe...
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Jul 2006 10:22:09 +0000 (10:22 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Jul 2006 10:22:09 +0000 (10:22 +0000)
From now on, after adding new messages to MediaWiki namespace using the script, the protection level is not set, and the messages are editable only by the users which have the permission "editinterface", regardless the permission "protect" (which should be used for other purposes - protecting pages, and editing protected pages - not for editing system messages). This will separate the permissions, and won't require us to grant the permission "protect" in order to make the "editinterface" permission functional.

maintenance/InitialiseMessages.inc

index dc89a79..189fbd2 100644 (file)
@@ -201,7 +201,7 @@ function initialiseMessagesReal( $overwrite = false, $messageArray = false ) {
                        }
                } else {
                        $article = new Article( $titleObj );
-                       $newid = $article->insertOn( $dbw, 'sysop' );
+                       $newid = $article->insertOn( $dbw );
                        # FIXME: set restrictions
                        $revision = new Revision( array(
                                'page'      => $newid,