Check if API enabled before loading dependent JS modules
authorKevin Israel <pleasestand@live.com>
Tue, 28 May 2013 12:00:52 +0000 (08:00 -0400)
committerKevin Israel <pleasestand@live.com>
Wed, 29 May 2013 00:30:11 +0000 (20:30 -0400)
commite3c3dfba8502c520e9afcbe7b0230458c41fc0ce
treefa6e4982e5613c558d07046447b042d40e84e28a
parent43f474682457d1b61f6bc43d7c7a4a17a7c21998
Check if API enabled before loading dependent JS modules

Affects whether these modules are loaded:

* mediawiki.searchSuggest ($wgEnableAPI only)
* mediawiki.page.watch.ajax ($wgEnableAPI, $wgEnableWriteAPI,
  'writeapi' right)
* mediawiki.page.patrol.ajax (same as above)

Checking of $wgUseAjax has not been removed where it was
already present, in case some users have set the variable
to false to disable these specific features.

Bug: 30213
Change-Id: If2ec219cfbb94e7c9718c58b9b54a508d0e0c656
RELEASE-NOTES-1.22
includes/Article.php
includes/Skin.php
includes/diff/DifferenceEngine.php