(bug 47070) check content model namespace on import.
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 10 Dec 2013 13:36:52 +0000 (14:36 +0100)
committerDaniel Kinzler <daniel.kinzler@wikimedia.de>
Tue, 17 Dec 2013 16:58:57 +0000 (16:58 +0000)
When importing, we need to check that the kind of content we are about to
import is actually allowed in the specified location on the local wiki.

This change does two things:

* Introduce the ContentModelCanBeUsedOn hook which provides control over
which kind of content can be used where.

* Introduce a check against ContentHandler::canBeUsedOn in the importer,
along with an appropriate error message.

Change-Id: Ia2ff0b0474f4727c9ebbba3c0a2a111495055f61


No differences found