Tpt has submitted this change and it was merged.

Change subject: (bug 37483) Create index and page namespaces automatically if 
not set
......................................................................


(bug 37483) Create index and page namespaces automatically if not set

This is retrocompatible with old installations if namespace name are
ones that are stored in proofreadPageNamespaceNames file.

The namespace names used by the Wikisources are all in this file so I
hope their won't be any bugs for Wikisourc For more security we have
to wait that https://gerrit.wikimedia.org/r/#/c/20876/ is merge in
Wikimedia config before adding this patch into core.

If an other namespace name have been used an error message is display
asking to update the configuration.

Namespaces can be customized with:

$wgProofreadPageNamespaceIds = array(
        'index' => /*INDEX NAMESPACE ID */,
        'page' => /* PAGE NAMESPACE ID */
);

Default ids are 250 for page and 252 for index.

Patch set 2: add of some languages.

Patch set 3: rebase + cleaning of the code use of hook, ability to set
             $pfpgNamespaceIds after inclusion of prp, add
                         of more comments...)

Patch set 4: rename of the global var in order to use the same system
             as the other extensions.
Patch set 5: Minor changes + rebase.

Patch set 6: Hope that fix a register_globals set vulnerability.

Patch set 7: Rebase and merge conflict resolved.

Patch set 8: Tweak line 1 of commit message to be brief and concise.

Patch set 10: Fix Polish translation of the namespace name.

Change-Id: Iada3840561a68113985d778db731a3ef8af523e2
---
M ProofreadPage.body.php
M ProofreadPage.i18n.php
A ProofreadPage.namespaces.php
M ProofreadPage.php
A includes/ProofreadPageInit.php
5 files changed, 483 insertions(+), 21 deletions(-)

Approvals:
  Tpt: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/17643
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iada3840561a68113985d778db731a3ef8af523e2
Gerrit-PatchSet: 12
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>
Gerrit-Reviewer: CSteipp <cste...@wikimedia.org>
Gerrit-Reviewer: Dereckson <dereck...@espace-win.org>
Gerrit-Reviewer: Jdlrobson <jdlrob...@gmail.com>
Gerrit-Reviewer: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Siebrand <siebr...@wikimedia.org>
Gerrit-Reviewer: Toniher <toni...@cau.cat>
Gerrit-Reviewer: Tpt <thoma...@hotmail.fr>
Gerrit-Reviewer: Zaran <thibaut.ho...@gmail.com>
Gerrit-Reviewer: saper <sa...@saper.info>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to