EditPage: Don't throw exceptions for invalid content models
authorKunal Mehta <legoktm@member.fsf.org>
Mon, 12 Sep 2016 09:52:51 +0000 (02:52 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Mon, 12 Sep 2016 21:56:24 +0000 (14:56 -0700)
commit46c47693fb81d2cbea707e701e72e3a3daf32391
treeea918b49bed45eeaafc391901acc5675a355bff9
parenta80ef242e12f3581887a0c5a1a46bf963eb04e00
EditPage: Don't throw exceptions for invalid content models

If a user tries to use an unrecognized content model using the "model"
request parameter, show a nice, localized error instead of an exception.

Bug: T145367
Change-Id: I50e7d332727c9afc22c1658d32c981db4305185b
includes/EditPage.php
languages/i18n/en.json
languages/i18n/qqq.json