From 10c8ebb2e7c4bdfe82f7d4c7edb3f762a4536946 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 14 Jan 2011 21:54:29 +0000 Subject: [PATCH] Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views --- docs/hooks.txt | 3 +++ includes/Article.php | 3 +++ 2 files changed, 6 insertions(+) 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 ) ); + } /** -- 2.20.1