I see two addHeadItems:
includes/OutputPage.php: function addHeadItem( $name, $value ) { includes/ParserOutput.php: function addHeadItem( $section, $tag = false ) {
which one should i use?
thanks,
ittay
Rob Church wrote on 05/17/07 18:09:
On 17/05/07, Ittay Dror ittayd@qlusters.com wrote:
So, is there a way of better associating javascript with a page?
In newer versions of MediaWiki, use Parser::addHeadItems(); see associated members and functions in Parser, ParserOutput and OutputPage.
This is a recent addition from Tim Starling, which is an alternative implementation of extension output handlers.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l