Index: trunk/extensions/Translate/TranslateUtils.php |
— | — | @@ -214,7 +214,8 @@ |
215 | 215 | } |
216 | 216 | |
217 | 217 | public static function messageIndex() { |
218 | | - $keyToGroup = array(); |
| 218 | + static $keyToGroup = null; |
| 219 | + if ( $keyToGroup !== null ) return $keyToGroup; |
219 | 220 | if ( file_exists( TRANSLATE_INDEXFILE ) ) { |
220 | 221 | $keyToGroup = unserialize( file_get_contents( TRANSLATE_INDEXFILE ) ); |
221 | 222 | } else { |