r24140 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24139‎ | r24140 | r24141 >
Date:01:10, 16 July 2007
Author:amidaniel
Status:old
Tags:
Comment:
Added hook point to allow extensions to add to contentSub on Special:Contributions.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -361,6 +361,9 @@
362362 }
363363 # Other logs link
364364 $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'Log' ), wfMsgHtml( 'log' ), 'user=' . $nt->getPartialUrl() );
 365+
 366+ # Let extensions add to this list as they need.
 367+ wfRunHooks( 'SpecialContribsSubEnd', array( $nt, &$tools ) );
365368 $links = implode( ' | ', $tools );
366369 }
367370
@@ -440,4 +443,4 @@
441444 $f .= '</fieldset>' .
442445 Xml::closeElement( 'form' );
443446 return $f;
444 -}
\ No newline at end of file
 447+}
Index: trunk/phase3/RELEASE-NOTES
@@ -140,6 +140,8 @@
141141 $wgAjaxLicencePreview)
142142 * New Parser::setTransparentTagHook for parser extension and template
143143 compatibility
 144+* Hook point 'SpecialContribsSubEnd' added to allow extensions to add to
 145+ the links displayed above Special:Contributions.
144146
145147 == Bugfixes since 1.10 ==
146148

Follow-up revisions

RevisionCommit summaryAuthorDate
r24215Merged revisions 24095-24212 via svnmerge from...david21:19, 17 July 2007

Status & tagging log