r64290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64289‎ | r64290 | r64291 >
Date:14:53, 28 March 2010
Author:demon
Status:ok
Tags:
Comment:
Factory functions are static
Modified paths:
  • /trunk/phase3/includes/Message.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Message.php
@@ -122,7 +122,7 @@
123123 * @param $key String: message key
124124 * @return Message: $this
125125 */
126 - public function key( $key ) {
 126+ public static function key( $key ) {
127127 return new Message( $key );
128128 }
129129

Status & tagging log