r17371 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17370‎ | r17371 | r17372 >
Date:06:02, 3 November 2006
Author:simetrical
Status:old
Tags:
Comment:
Fix documentation that confused me. Bad Tim, copy-pasting in r12924!
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -180,12 +180,14 @@
181181 * call this lots of times, pre-fill the link cache with a LinkBatch, otherwise each
182182 * call to this will result in a DB query.
183183 *
184 - * @param $title String: the text of the title
 184+ * @param $nt Title: the title object to make the link from, e.g. from
 185+ * Title::newFromText.
185186 * @param $text String: link text
186187 * @param $query String: optional query part
187188 * @param $trail String: optional trail. Alphabetic characters at the start of this string will
188189 * be included in the link text. Other characters will be appended after
189190 * the end of the link.
 191+ * @param $prefix String: optional prefix. As trail, only before instead of after.
190192 */
191193 function makeLinkObj( $nt, $text= '', $query = '', $trail = '', $prefix = '' ) {
192194 global $wgUser;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r12924documentation, code cleanuptimstarling04:34, 1 February 2006