Index: trunk/extensions/OnlineStatus/OnlineStatus.php |
— | — | @@ -100,7 +100,6 @@ |
101 | 101 | */ |
102 | 102 | static function Ajax( $action, $stat = false ){ |
103 | 103 | global $wgUser; |
104 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
105 | 104 | |
106 | 105 | if( $wgUser->isAnon() ) |
107 | 106 | return wfMsgHtml( 'onlinestatus-js-anon' ); |
— | — | @@ -160,7 +159,6 @@ |
161 | 160 | if( $status === null ) |
162 | 161 | return array( 'found' => false ); |
163 | 162 | if( empty( $raw ) ){ |
164 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
165 | 163 | return wfMsgNoTrans( 'onlinestatus-toggle-' . $status ); |
166 | 164 | } else { |
167 | 165 | return $status; |
— | — | @@ -184,7 +182,6 @@ |
185 | 183 | $status = self::GetUserStatus( $parser->getTitle() ); |
186 | 184 | if( $status === null ) |
187 | 185 | return true; |
188 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
189 | 186 | $ret = wfMsgNoTrans( 'onlinestatus-toggle-' . $status ); |
190 | 187 | $varCache['onlinestatus'] = $ret; |
191 | 188 | } else if( $index == 'onlinestatus_word_raw' ){ |
— | — | @@ -201,8 +198,6 @@ |
202 | 199 | * Hook for user preferences |
203 | 200 | */ |
204 | 201 | public static function GetPreferences( $user, &$preferences ) { |
205 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
206 | | - |
207 | 202 | $msg = wfMsgForContentNoTrans( 'onlinestatus-levels' ); |
208 | 203 | $lines = explode( "\n", $msg ); |
209 | 204 | $radios = array(); |
— | — | @@ -293,7 +288,6 @@ |
294 | 289 | $status = self::GetUserStatus( $wgTitle, true ); |
295 | 290 | if( $status === null ) |
296 | 291 | return true; |
297 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
298 | 292 | $out->setSubtitle( wfMsgExt( 'onlinestatus-subtitle-' . $status, array( 'parse' ) ) ); |
299 | 293 | |
300 | 294 | return true; |
— | — | @@ -310,7 +304,6 @@ |
311 | 305 | $arr = array(); |
312 | 306 | foreach( $urls as $key => $val ){ |
313 | 307 | if( $key == 'logout' ){ |
314 | | - wfLoadExtensionMessages( 'OnlineStatus' ); |
315 | 308 | $arr['status'] = array( |
316 | 309 | 'text' => wfMsgHtml( 'onlinestatus-tab' ), |
317 | 310 | 'href' => 'javascript:;', |