Add script to fix content model of JSON pages
authorKunal Mehta <legoktm@gmail.com>
Wed, 21 Oct 2015 05:44:33 +0000 (22:44 -0700)
committerKunal Mehta <legoktm@gmail.com>
Tue, 24 Nov 2015 18:08:44 +0000 (10:08 -0800)
commit2986d47c9052af08e37b363ad614e32f5ccff508
treec726b0b59ae8d565376ab64c89e5d39d53ceb168
parente8a35d9c34275aa9729d775342bda22b810d2f44
Add script to fix content model of JSON pages

MediaWiki:Foo.json and User:Foo/bar.json pages now have a default
content model of JSON, but existing pages using those names will be set
to defaults of wikitext.

The content models of those pages are now set to "json", unless it has
invalid syntax, in which case it will be set to "wikitext".

For convenience, the script is automatically run as part of update.php.

Bug: T108663
Change-Id: I1412937ccea8e65dba58580beec79cbf2286ae01
autoload.php
includes/installer/DatabaseUpdater.php
maintenance/fixDefaultJsonContentPages.php [new file with mode: 0644]