r74725 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74724‎ | r74725 | r74726 >
Date:18:45, 13 October 2010
Author:jdpond
Status:resolved
Tags:
Comment:
Added $lang parameter to DoEditSectionLink hook. Allows extensions that add or modify links to use wfMsgExt to build those links consistent with parent function doEditSectionLink.
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -1410,7 +1410,7 @@
14111411 $result = wfMsgExt( 'editsection-brackets', array( 'escape', 'replaceafter', 'language' => $lang ), $link );
14121412 $result = "<span class=\"editsection\">$result</span>";
14131413
1414 - wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result ) );
 1414+ wfRunHooks( 'DoEditSectionLink', array( $this, $nt, $section, $tooltip, &$result , $lang) );
14151415 return $result;
14161416 }
14171417

Follow-up revisions

RevisionCommit summaryAuthorDate
r74800Follow up r74725. Also add $lang parameter to EditSectionLink....platonides22:13, 14 October 2010

Status & tagging log