From 85f30689fada15761ee61c58e450f144dc33d7fa Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Sat, 1 Jul 2006 10:22:09 +0000 Subject: [PATCH] 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. --- maintenance/InitialiseMessages.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1