Move bottomScripts() call in SkinTemplate
authorGilles Dubuc <gdubuc@wikimedia.org>
Mon, 15 Aug 2016 07:15:45 +0000 (09:15 +0200)
committerGilles Dubuc <gdubuc@wikimedia.org>
Mon, 15 Aug 2016 07:15:45 +0000 (09:15 +0200)
commit95fc8a96db6087224370408cd88d717708714a14
tree775bc3f779b556ca9554c703f722692a07d1063c
parentf4070a55263311f2f6e1d3a50391ee1aff97d236
Move bottomScripts() call in SkinTemplate

SkinTemplateNavigation::SpecialPage in buildContentNavigationUrls() and
possibly other hooks are susceptible to adding bottom scripts to
the skin's OutputPage.

It's safer to add the bottom scripts to the template
as late as we can, as doing so will instantiate the rlClient and
populate it with the scripts collected at that point.

Bug: T87871
Change-Id: I000365a7542167d8531d6984d3a1ef6c362034ab
includes/skins/SkinTemplate.php