Index: trunk/phase3/includes/MessageCache.php |
— | — | @@ -500,7 +500,7 @@ |
501 | 501 | * functionality), or if it is a true boolean then |
502 | 502 | * use the wikis content language (also as a |
503 | 503 | * fallback). |
504 | | - * @param bool $isFullKey Specifies whether $key is a two part key "lang/msg". |
| 504 | + * @param bool $isFullKey Specifies whether $key is a two part key "msg/lang". |
505 | 505 | */ |
506 | 506 | function get( $key, $useDB = true, $langcode = true, $isFullKey = false ) { |
507 | 507 | global $wgContLanguageCode, $wgContLang; |
— | — | @@ -522,13 +522,13 @@ |
523 | 523 | # Try the MediaWiki namespace |
524 | 524 | if( !$this->mDisable && $useDB ) { |
525 | 525 | $title = $wgContLang->ucfirst( $lckey ); |
526 | | - if(!$isFullKey && ($langcode != $wgContLanguageCode) ) { |
| 526 | + if(!$isFullKey && ( $langcode != $wgContLanguageCode ) ) { |
527 | 527 | $title .= '/' . $langcode; |
528 | 528 | } |
529 | 529 | $message = $this->getMsgFromNamespace( $title, $langcode ); |
530 | 530 | } |
531 | | - if($message === false) |
532 | | - wfRunHooks('MessageNotInMwNs', array(&$message,$lckey,$langcode,$isFullKey)); |
| 531 | + if( $message === false ) |
| 532 | + wfRunHooks( 'MessageNotInMwNs', array( &$message, $lckey, $langcode, $isFullKey ) ); |
533 | 533 | |
534 | 534 | # Try the extension array |
535 | 535 | if ( $message === false && isset( $this->mExtensionMessages[$langcode][$lckey] ) ) { |