Remove unused VectorTemplateToolboxEnd hook.
authorPlatonides <platonides@users.mediawiki.org>
Wed, 3 Mar 2010 22:15:40 +0000 (22:15 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 3 Mar 2010 22:15:40 +0000 (22:15 +0000)
Per-skin hooks are evil. Extensions should use SkinTemplateToolboxEnd.

docs/hooks.txt
skins/Vector.php

index e31d909..835bbf9 100644 (file)
@@ -1765,13 +1765,6 @@ authentification timestamp
 new toggles
 $toggles: array of toggles to add
 
-'VectorTemplateToolboxEnd': Called by Vector skin after toolbox links have
-been rendered (useful for adding more)
-Note: this is only run for the Vector skin.  To add items to the toolbox
-for all 'SkinTemplate'-type skins, use the SkinTemplateToolboxEnd hook
-instead.
-$tools: array of tools
-
 'WantedPages::getSQL': called in WantedPagesPage::getSQL(), can be used to
 alter the SQL query which gets the list of wanted pages
 &$wantedPages: WantedPagesPage object
index 616b784..cd233a9 100644 (file)
@@ -611,7 +611,6 @@ class VectorTemplate extends QuickTemplate {
                <?php elseif ( $this->data['nav_urls']['permalink']['href'] === '' ): ?>
                <li id="t-ispermalink"<?php echo $this->skin->tooltip( 't-ispermalink' ) ?>><?php $this->msg( 'permalink' ) ?></li>
                <?php endif; ?>
-               <?php wfRunHooks( 'VectorTemplateToolboxEnd', array( &$this ) ); ?>
                <?php wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this ) ); ?>
                </ul>
        </div>