https://bugzilla.wikimedia.org/show_bug.cgi?id=31830

--- Comment #6 from Van de Bugger <[email protected]> 2011-10-19 22:36:37 
UTC ---
Ok. Few more questions. This code is not clear to me:

// Starting from MW 1.16, there is a more suited method available:
Title::isSpecialPage
$title = $this->parser->getTitle();
if ( !is_null( $title ) && $title->getNamespace() == NS_SPECIAL ) {
    global $wgOut;
    SMWOutputs::commitToOutputPage( $wgOut );
}
else {
    SMWOutputs::commitToParser( $this->parser );
}

Note it was "global $wgTitle;" before, but they say $wgTitle is obsolete and
will be deleted very soon, so I replaced it with 

$title = $this->parser->getTitle();

Is that ok?

Also confirm that SMWOutputs::commitTo{Parser,OutputPage} is about extra
resources (like scripts and style sheets) and `render' result is always passed
through the parser, even on special pages.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to