Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views
This commit is contained in:
parent
6504af3998
commit
10c8ebb2e7
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1295,6 +1295,9 @@ class Article {
|
|||
if ( $wgUseTrackbacks ) {
|
||||
$this->addTrackbacks();
|
||||
}
|
||||
|
||||
wfRunHooks( 'ArticleViewFooter', array( $this ) );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue