Generic method to add stylesheets and scripts to the header from parser extensions...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 3 Apr 2007 21:58:18 +0000 (21:58 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 3 Apr 2007 21:58:18 +0000 (21:58 +0000)
commitd3e07758d4ea14fbc0410dd2878bc8652390f75c
treeb1037e91f6ebb669cfe87431486a37dd155bf304
parentb2666d2d514bc9747957aa98bd18c5da0b239797
Generic method to add stylesheets and scripts to the header from parser extensions. Using a hook is inefficient since it requires loading the code on a parser cache hit. This feature saves the header text to the parser cache, and writes it to the output with no hook being called. Ugly getScript() hack to make it work with third-party skins.
includes/OutputPage.php
includes/ParserOutput.php