= when making URLs for template parameters.
* Markup anality: escape </ as <\/ in toolbar javascript for pure correctness
under HTML-compatible browsers.
+* (bug 5077) Added hook 'BeforePageDisplay' to SkinTemplate::outputPage
== Compatibility ==
to use this hook.
$content_actions: The array of content actions
+'BeforePageDisplay': Called just before outputting a page (all kinds of,
+ articles, special, history, preview, diff, edit, ...)
+ Can be used to set custom CSS/JS
+$out: OutputPage object
More hooks might be available but undocumented, you can execute
./maintenance/findhooks.php to find hidden one.
$fname = 'SkinTemplate::outputPage';
wfProfileIn( $fname );
+ // Hook that allows last minute changes to the output page, e.g.
+ // adding of CSS or Javascript by extensions.
+ wfRunHooks( 'BeforePageDisplay', array( &$out ) );
+
extract( $wgRequest->getValues( 'oldid', 'diff' ) );
wfProfileIn( "$fname-init" );