From: Rotem Liss Date: Sat, 1 Jul 2006 10:22:09 +0000 (+0000) Subject: Removing the additional protection of the system messages in maintenance/InitialiseMe... X-Git-Tag: 1.31.0-rc.0~56500 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=85f30689fada15761ee61c58e450f144dc33d7fa;p=lhc%2Fweb%2Fwiklou.git Removing the additional protection of the system messages in maintenance/InitialiseMessages.inc. The system messages are already protected using the permission "editinterface", which protects the whole MediaWiki namespace, and they require no additional protection. If we want that regular users will be able to edit the messages, for example, we are currently required to grant them the both permissions "editinterface" and "protect". 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. --- diff --git a/maintenance/InitialiseMessages.inc b/maintenance/InitialiseMessages.inc index dc89a7916e..189fbd2518 100644 --- a/maintenance/InitialiseMessages.inc +++ b/maintenance/InitialiseMessages.inc @@ -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,