Added ArticleViewFooter hook to allow extensions adding additional items to the foote...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 14 Jan 2011 21:54:29 +0000 (21:54 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 14 Jan 2011 21:54:29 +0000 (21:54 +0000)
docs/hooks.txt
includes/Article.php

index 03ce7c3..dfc7a95 100644 (file)
@@ -506,6 +506,9 @@ before the user is redirected back to the page
 &$sectionanchor: The section anchor link (e.g. "#overview" )
 &$extraq: Extra query parameters which can be added via hooked functions
 
+'ArticleViewFooter': After showing the footer section of an ordinary page view
+$article: Article object
+
 'ArticleViewHeader': Before the parser cache is about to be tried for article
 viewing.
 &$article: the article
index adea10c..0031c2a 100644 (file)
@@ -1295,6 +1295,9 @@ class Article {
                if ( $wgUseTrackbacks ) {
                        $this->addTrackbacks();
                }
+
+               wfRunHooks( 'ArticleViewFooter', array( $this ) );
+
        }
 
        /**