r80066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80065‎ | r80066 | r80067 >
Date:00:16, 12 January 2011
Author:reedy
Status:deferred
Tags:
Comment:
Fix non static method being called statically
Modified paths:
  • /trunk/extensions/Validator/includes/Parameter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/includes/Parameter.php
@@ -477,10 +477,12 @@
478478 * @return string
479479 */
480480 public function getTypeMessage() {
 481+ global $wgLang;
 482+
481483 $message = wfMsg( 'validator-type-' . $this->type );
482484 return $this->isList() ?
483485 wfMsgExt( 'validator-describe-listtype', 'parsemag', $message )
484 - : Language::ucfirst( $message );
 486+ : $wgLang->ucfirst( $message );
485487 }
486488
487489 /**

Status & tagging log