From f9f9da61baa8dec0eb23fefc0edc3030b86a7c93 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Mon, 16 Jul 2007 01:10:38 +0000 Subject: [PATCH] Added hook point to allow extensions to add to contentSub on Special:Contributions. --- RELEASE-NOTES | 2 ++ includes/SpecialContributions.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 690432286f..cf22f4fd45 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -140,6 +140,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN $wgAjaxLicencePreview) * New Parser::setTransparentTagHook for parser extension and template compatibility +* Hook point 'SpecialContribsSubEnd' added to allow extensions to add to + the links displayed above Special:Contributions. == Bugfixes since 1.10 == diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index ae51cdeb2b..2e7890f047 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -361,6 +361,9 @@ function contributionsSub( $nt, $id ) { } # Other logs link $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'Log' ), wfMsgHtml( 'log' ), 'user=' . $nt->getPartialUrl() ); + + # Let extensions add to this list as they need. + wfRunHooks( 'SpecialContribsSubEnd', array( $nt, &$tools ) ); $links = implode( ' | ', $tools ); } @@ -440,4 +443,4 @@ function contributionsForm( $options ) { $f .= '' . Xml::closeElement( 'form' ); return $f; -} \ No newline at end of file +} -- 2.20.1