r60366 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60365‎ | r60366 | r60367 >
Date:19:14, 24 December 2009
Author:conrad
Status:deferred
Tags:
Comment:
Add missing static's
Modified paths:
  • /trunk/extensions/Transliterator/Transliterator_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Transliterator/Transliterator_body.php
@@ -15,7 +15,7 @@
1616 /**
1717 * Split a word into letters (not bytes or codepoints) implicitly in NFC due to MediaWiki.
1818 */
19 - function letters( $word ) {
 19+ static function letters( $word ) {
2020 global $utfCombiningClass;
2121 UtfNormal::loadData();
2222
@@ -120,7 +120,7 @@
121121 $map = $wgMemc->get( wfMemcKey( self::CACHE_PREFIX, $mappage ) );
122122 if (! $map ) {
123123
124 - $map = $this->readMap( wfMsg( $mappage ), $mappage );
 124+ $map = self::readMap( wfMsg( $mappage ), $mappage );
125125
126126 if ( $map )
127127 $wgMemc->set( wfMemcKey( self::CACHE_PREFIX, $mappage ), $map);
@@ -156,8 +156,8 @@
157157 * $map['__decompose__'] indicates that NFD should be used instead of characters
158158 * $map['__sensitive__'] indicates that the automatic first-letter upper-case fall-through should not be tried
159159 */
160 - function readMap( $input, $mappage ) {
161 - global $wgTransliteratorRuleCount, $wgTransliteratorRuleSize;
 160+ static function readMap( $input, $mappage ) {
 161+ global $wgTransliteratorRuleCount, $wgTransliteratorRuleSize;
162162
163163 $map = array();
164164 $decompose = false;

Status & tagging log