From: Timo Tijhof Date: Mon, 21 May 2018 21:21:28 +0000 (+0100) Subject: OutputPage: Remove appending of wgStyleVersion to legacy resources X-Git-Tag: 1.34.0-rc.0~5329^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=5d000f3b41c4d9083db38f6a4543fe89cac076a0;p=lhc%2Fweb%2Fwiklou.git OutputPage: Remove appending of wgStyleVersion to legacy resources For addScriptFile(), just remove the appending of wgStyleVersion. Going forward, anyone still using this, should simply append a query parameter themselves in a way that is specific to that one url (instead of relying on a generic global variable). Alternatively, one could use OutputPage::transformResourcePath if the file is in /w/. For addStyles(), also remove the appending of wgStyleVersion. Since this method takes paths relative to /w/skins, we can easily update this to automatically use transformResourcePath(), so that file-hash based query parameters are automatically added. Test Plan: * Add calls to top of OutputPage::output(): `$this->addStyle( 'Vector/README.md' );` `$this->addScriptFile( "{$GLOBALS['wgScriptPath']}/composer.json" );` * Before, they are both inserted as `` (head) and `