r76194 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76193‎ | r76194 | r76195 >
Date:15:14, 6 November 2010
Author:happy-melon
Status:ok
Tags:
Comment:
Clarify doc, per r63675 CR.
Modified paths:
  • /trunk/phase3/includes/Xml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Xml.php
@@ -347,7 +347,10 @@
348348 * Convenience function to build an HTML form label
349349 * @param $label String text of the label
350350 * @param $id
351 - * @param $attribs Array, other attributes
 351+ * @param $attribs Array an attribute array. This will usuall be
 352+ * the same array as is passed to the corresponding input element,
 353+ * so this function will cherry-pick appropriate attributes to
 354+ * apply to the label as well; currently only class is applied.
352355 * @return string HTML
353356 */
354357 public static function label( $label, $id, $attribs=array() ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63675Apply CSS classes for XML checkboxes/radiobuttons to their labels as well.happy-melon14:59, 13 March 2010

Status & tagging log