Index: trunk/extensions/Transliterator/Transliterator_body.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | /** |
17 | 17 | * Split a word into letters (not bytes or codepoints) implicitly in NFC due to MediaWiki. |
18 | 18 | */ |
19 | | - function letters( $word ) { |
| 19 | + static function letters( $word ) { |
20 | 20 | global $utfCombiningClass; |
21 | 21 | UtfNormal::loadData(); |
22 | 22 | |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | $map = $wgMemc->get( wfMemcKey( self::CACHE_PREFIX, $mappage ) ); |
122 | 122 | if (! $map ) { |
123 | 123 | |
124 | | - $map = $this->readMap( wfMsg( $mappage ), $mappage ); |
| 124 | + $map = self::readMap( wfMsg( $mappage ), $mappage ); |
125 | 125 | |
126 | 126 | if ( $map ) |
127 | 127 | $wgMemc->set( wfMemcKey( self::CACHE_PREFIX, $mappage ), $map); |
— | — | @@ -156,8 +156,8 @@ |
157 | 157 | * $map['__decompose__'] indicates that NFD should be used instead of characters |
158 | 158 | * $map['__sensitive__'] indicates that the automatic first-letter upper-case fall-through should not be tried |
159 | 159 | */ |
160 | | - function readMap( $input, $mappage ) { |
161 | | - global $wgTransliteratorRuleCount, $wgTransliteratorRuleSize; |
| 160 | + static function readMap( $input, $mappage ) { |
| 161 | + global $wgTransliteratorRuleCount, $wgTransliteratorRuleSize; |
162 | 162 | |
163 | 163 | $map = array(); |
164 | 164 | $decompose = false; |