ResourceLoaderWikiModule: Check content format instead of content model
authorKunal Mehta <legoktm@gmail.com>
Sat, 13 Sep 2014 23:35:56 +0000 (16:35 -0700)
committerAlex Monk <krenair@wikimedia.org>
Sun, 14 Sep 2014 00:29:01 +0000 (01:29 +0100)
commit763e137d2cebcd506525251b7b4e4f76a4eaf1b9
tree9a6d2a0c7d92a30d5ca6c3e6d43e23b3968a3195
parent87cddceefe893fc37266487ec18803ad06649edb
ResourceLoaderWikiModule: Check content format instead of content model

For Gadgets 2.0, we have custom content models that represent
JavaScript and CSS pages. Comparing the exact content model here
is too strict, when we really want to know if the page supports
the JavaScript or CSS formats.

Also fix a debug log comment that didn't work due to improper quoting.

Change-Id: I64e86c74173b1c88cac71483327cacdd8b9967b9
includes/resourceloader/ResourceLoaderWikiModule.php