From: Alexandre Emsenhuber Date: Fri, 14 Jan 2011 21:54:29 +0000 (+0000) Subject: Added ArticleViewFooter hook to allow extensions adding additional items to the foote... X-Git-Tag: 1.31.0-rc.0~32534 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=10c8ebb2e7c4bdfe82f7d4c7edb3f762a4536946;p=lhc%2Fweb%2Fwiklou.git Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 03ce7c39cf..dfc7a95235 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/Article.php b/includes/Article.php index adea10cd91..0031c2ae21 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1295,6 +1295,9 @@ class Article { if ( $wgUseTrackbacks ) { $this->addTrackbacks(); } + + wfRunHooks( 'ArticleViewFooter', array( $this ) ); + } /**