This is PHP, updating docs to reflect that
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 25 Mar 2010 13:10:26 +0000 (13:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 25 Mar 2010 13:10:26 +0000 (13:10 +0000)
includes/Message.php

index 859b9d4..7fedb9b 100644 (file)
  *
  * Examples:
  * Fetching a message text for interface message
- *  $button = Xml::button( Message::key( 'submit' ).text() );
+ *  $button = Xml::button( Message::key( 'submit' )->text() );
  * Messages can have parameters:
- *  Message::key( 'welcome-to' )->param( $wgSitename ).text(); // {{GRAMMAR}} and friends work correctly
+ *  Message::key( 'welcome-to' )->param( $wgSitename )->text(); // {{GRAMMAR}} and friends work correctly
  *  Message::key( 'are-friends' )->params( $user, $friend );
- *  Message::key( 'bad-message' )->rawParam( '<script>...</script>' ).escaped()
+ *  Message::key( 'bad-message' )->rawParam( '<script>...</script>' )->escaped()
  * Sometimes the message text ends up in the database, so content language is needed.
  *  Message::key( 'file-log' )->params( $user, $filename )->inContentLanguage()->text()
  * Checking if message exists: