Load the module mediawiki.page.watch.ajax only when needed
authorFomafix <fomafix@googlemail.com>
Thu, 17 Sep 2015 05:35:29 +0000 (05:35 +0000)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 17 Sep 2015 19:46:27 +0000 (19:46 +0000)
commit732cc2390e4d79744a3e721ffcc8217488af244b
treec17348947b10cfb7a633e0440493f2278720c928
parentdd3b90a9db09498bfb6f35a61aad1832b4218c8f
Load the module mediawiki.page.watch.ajax only when needed

Load the module mediawiki.page.watch.ajax only when there is
a watch button on the page.

This change uses the same checks as buildContentNavigationUrls() in SkinTemplate.php.

Also combine two if checks.

Bug: T112523
Change-Id: I78895ffea1290f8c1d90630851d0d3d443800d66
includes/skins/Skin.php