Per bug 28738 comment 4, pack ResourceLoader URLs by encoding foo.bar|foo.baz|bar...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 5 May 2011 13:46:47 +0000 (13:46 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 5 May 2011 13:46:47 +0000 (13:46 +0000)
commit7fee86c38ea6b42d9606db2e0b9dd7990316f14d
tree0d31d6b093237d5a04c558b412398d754f347a2c
parent648bed9f8394bdc3d87ce4d71ce0539754624529
Per bug 28738 comment 4, pack ResourceLoader URLs by encoding foo.bar|foo.baz|bar.baz|bar.quux as foo.bar,baz|bar.baz,quux

* Expand these URLs in ResourceLoaderContext
* Build and emit these URLs in OutputPage::makeResourceLoaderLink() and in mw.loader
* Throw an exception in ResourceLoader::register() for module names that contain pipe characters or commas. Commas need to be forbidden for this packing feature to work. Pipes were already forbidden but weren't checked for
includes/OutputPage.php
includes/resourceloader/ResourceLoader.php
includes/resourceloader/ResourceLoaderContext.php
resources/mediawiki/mediawiki.js