Revert 'MonoBookTemplateAboveColumnContent' hook. Seems weirdly skin-specific for...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 1 May 2007 16:31:24 +0000 (16:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 1 May 2007 16:31:24 +0000 (16:31 +0000)
There shouldn't be any hook calls in the skin template output at all -- looks like one snuck in before, and it should also be removed and replaced with a general toolbox system. This one won't be allowed to take root first.

docs/hooks.txt
skins/MonoBook.php

index 5e81eae..a043bd1 100644 (file)
@@ -431,10 +431,6 @@ $mathRenderer: instance of MathRenderer
 $errmsg: error message, in HTML (string). Nonempty indicates failure
  of rendering the formula
 
-'MonoBookTemplateAboveColumnContent': Monobook output, above div#column-content. Any string
-you echo here will be printed above the div#column-content element on every page.
-$outObj: instance of the output class
-
 'OutputPageBeforeHTML': a page has been processed by the parser and
 the resulting HTML is about to be displayed.  
 $parserOutput: the parserOutput (object) that corresponds to the page 
index a8a829b..50d7f00 100644 (file)
@@ -95,11 +95,6 @@ class MonoBookTemplate extends QuickTemplate {
 <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
  class="mediawiki <?php $this->text('nsclass') ?> <?php $this->text('dir') ?> <?php $this->text('pageclass') ?>">
        <div id="globalWrapper">
-<?php
-               // this is meant to be above div#column-content
-               wfRunHooks( 'MonoBookTemplateAboveColumnContent', array( &$this ) );
-
-?>
                <div id="column-content">
        <div id="content">
                <a name="top" id="top"></a>