Index: trunk/extensions/SocialProfile/UserWelcome/UserWelcome.php |
— | — | @@ -49,7 +49,6 @@ |
50 | 50 | |
51 | 51 | function getWelcome() { |
52 | 52 | global $wgUser, $wgOut, $wgScriptPath, $wgUploadPath; |
53 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
54 | 53 | |
55 | 54 | // Add CSS |
56 | 55 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserWelcome/UserWelcome.css' ); |
— | — | @@ -107,8 +106,6 @@ |
108 | 107 | } |
109 | 108 | |
110 | 109 | function getRequests() { |
111 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
112 | | - |
113 | 110 | // Get requests |
114 | 111 | $requests = getNewMessagesLink() . getRelationshipRequestLink() . |
115 | 112 | getNewGiftLink() . getNewSystemGiftLink(); |
— | — | @@ -129,7 +126,6 @@ |
130 | 127 | |
131 | 128 | function getRelationshipRequestLink() { |
132 | 129 | global $wgUser, $wgScriptPath; |
133 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
134 | 130 | $friend_request_count = UserRelationship::getOpenRequestCount( $wgUser->getID(), 1 ); |
135 | 131 | $foe_request_count = UserRelationship::getOpenRequestCount( $wgUser->getID(), 2 ); |
136 | 132 | $relationship_request_link = SpecialPage::getTitleFor( 'ViewRelationshipRequests' ); |
— | — | @@ -157,7 +153,6 @@ |
158 | 154 | |
159 | 155 | function getNewGiftLink() { |
160 | 156 | global $wgUser, $wgScriptPath; |
161 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
162 | 157 | $gift_count = UserGifts::getNewGiftCount( $wgUser->getID() ); |
163 | 158 | $gifts_title = SpecialPage::getTitleFor( 'ViewGifts' ); |
164 | 159 | $output = ''; |
— | — | @@ -174,7 +169,6 @@ |
175 | 170 | |
176 | 171 | function getNewSystemGiftLink() { |
177 | 172 | global $wgUser, $wgScriptPath; |
178 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
179 | 173 | $gift_count = UserSystemGifts::getNewSystemGiftCount( $wgUser->getID() ); |
180 | 174 | $gifts_title = SpecialPage::getTitleFor( 'ViewSystemGifts' ); |
181 | 175 | $output = ''; |
— | — | @@ -193,7 +187,6 @@ |
194 | 188 | |
195 | 189 | function getNewMessagesLink() { |
196 | 190 | global $wgUser, $wgScriptPath; |
197 | | - wfLoadExtensionMessages( 'UserWelcome' ); |
198 | 191 | $new_messages = UserBoard::getNewMessageCount( $wgUser->getID() ); |
199 | 192 | $output = ''; |
200 | 193 | if ( $new_messages ) { |
Index: trunk/extensions/SocialProfile/UserActivity/SiteActivityHook.php |
— | — | @@ -28,8 +28,6 @@ |
29 | 29 | // so that <siteactivity limit=5 /> will return 5 items instead of 4... |
30 | 30 | $fixedLimit = $limit + 1; |
31 | 31 | |
32 | | - wfLoadExtensionMessages( 'UserActivity' ); |
33 | | - |
34 | 32 | $key = wfMemcKey( 'site_activity', 'all', $fixedLimit ); |
35 | 33 | $data = $wgMemc->get( $key ); |
36 | 34 | if ( !$data ) { |
Index: trunk/extensions/SocialProfile/UserActivity/UserActivity.body.php |
— | — | @@ -16,8 +16,6 @@ |
17 | 17 | public function execute( $par ) { |
18 | 18 | global $wgUser, $wgOut, $wgRequest, $wgScriptPath; |
19 | 19 | |
20 | | - wfLoadExtensionMessages( 'UserActivity' ); |
21 | | - |
22 | 20 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserActivity/UserActivity.css' ); |
23 | 21 | |
24 | 22 | $wgOut->setPageTitle( wfMsg( 'useractivity-title' ) ); |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialRemoveMasterGift.php |
— | — | @@ -49,7 +49,6 @@ |
50 | 50 | */ |
51 | 51 | public function execute( $par ) { |
52 | 52 | global $wgUser, $wgOut, $wgRequest, $wgUserGiftsScripts; |
53 | | - wfLoadExtensionMessages( 'UserGifts' ); |
54 | 53 | |
55 | 54 | // Add CSS |
56 | 55 | $wgOut->addExtensionStyle( $wgUserGiftsScripts . '/UserGifts.css' ); |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiftManager.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgScriptPath, $wgUserGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'UserGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->setPageTitle( wfMsg( 'giftmanager' ) ); |
23 | 22 | |
— | — | @@ -116,7 +115,6 @@ |
117 | 116 | |
118 | 117 | function displayGiftList() { |
119 | 118 | global $wgScriptPath; |
120 | | - wfLoadExtensionMessages( 'UserGifts' ); |
121 | 119 | $output = ''; // Prevent E_NOTICE |
122 | 120 | $page = 0; |
123 | 121 | $per_page = 10; |
— | — | @@ -134,7 +132,6 @@ |
135 | 133 | |
136 | 134 | function displayForm( $gift_id ) { |
137 | 135 | global $wgUser, $wgOut, $wgScriptPath; |
138 | | - wfLoadExtensionMessages( 'UserGifts' ); |
139 | 136 | |
140 | 137 | if ( !$gift_id && !$this->canUserCreateGift() ) { |
141 | 138 | return $this->displayGiftList(); |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiveGift.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgMemc, $wgUploadPath, $wgUserGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'UserGifts' ); |
21 | 20 | |
22 | 21 | $output = ''; // Prevent E_NOTICE |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGift.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgUserGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'UserGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->addExtensionStyle( $wgUserGiftsScripts . '/UserGifts.css' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialGiftManagerLogo.php |
— | — | @@ -417,7 +417,6 @@ |
418 | 418 | */ |
419 | 419 | function showSuccess( $status ) { |
420 | 420 | global $wgOut, $wgUploadPath, $wgScriptPath, $wgLang; |
421 | | - wfLoadExtensionMessages( 'UserGifts' ); |
422 | 421 | $ext = 'jpg'; |
423 | 422 | |
424 | 423 | $output = '<h2>' . wfMsg( 'g-uploadsuccess' ) . '</h2>'; |
— | — | @@ -457,7 +456,6 @@ |
458 | 457 | */ |
459 | 458 | function uploadError( $error ) { |
460 | 459 | global $wgOut; |
461 | | - wfLoadExtensionMessages( 'UserGifts' ); |
462 | 460 | $sub = wfMsg( 'uploadwarning' ); |
463 | 461 | $wgOut->addHTML( "<h2>{$sub}</h2>\n" ); |
464 | 462 | $wgOut->addHTML( "<h4 class='error'>{$error}</h4>\n" ); |
— | — | @@ -533,7 +531,6 @@ |
534 | 532 | */ |
535 | 533 | function mainUploadForm( $msg = '' ) { |
536 | 534 | global $wgOut, $wgUser, $wgUseCopyrightUpload; |
537 | | - wfLoadExtensionMessages( 'UserGifts' ); |
538 | 535 | |
539 | 536 | if ( !$this->canUserManage() ) { |
540 | 537 | $wgOut->errorpage( 'error', 'badaccess' ); |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialRemoveGift.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgMemc, $wgUploadPath, $wgUserGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'UserGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->addExtensionStyle( $wgUserGiftsScripts . '/UserGifts.css' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserGifts/SpecialViewGifts.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgMemc, $wgUploadPath, $wgUserGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'UserGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->addExtensionStyle( $wgUserGiftsScripts . '/UserGifts.css' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserGifts/UserGiftsClass.php |
— | — | @@ -68,8 +68,6 @@ |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function sendGiftNotificationEmail( $user_id_to, $user_from, $gift_id, $type ) { |
72 | | - wfLoadExtensionMessages( 'UserGifts' ); |
73 | | - |
74 | 72 | $gift = Gifts::getGift( $gift_id ); |
75 | 73 | $user = User::newFromId( $user_id_to ); |
76 | 74 | $user->loadFromDatabase(); |
Index: trunk/extensions/SocialProfile/UserSystemMessages/UserSystemMessagesClass.php |
— | — | @@ -98,7 +98,6 @@ |
99 | 99 | * @param $level Mixed: name of the level that the user advanced to |
100 | 100 | */ |
101 | 101 | public function sendAdvancementNotificationEmail( $user_id_to, $level ) { |
102 | | - wfLoadExtensionMessages( 'SocialProfileUserStats' ); |
103 | 102 | $user = User::newFromId( $user_id_to ); |
104 | 103 | $user->loadFromDatabase(); |
105 | 104 | if ( $user->isEmailConfirmed() && $user->getIntOption( 'notifyhonorifics', 1 ) ) { |
Index: trunk/extensions/SocialProfile/UserStats/TopFansRecent.php |
— | — | @@ -18,9 +18,6 @@ |
19 | 19 | global $wgRequest, $wgUser, $wgOut, $wgMemc, $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly, |
20 | 20 | $wgUserLevels, $wgUploadPath, $wgScriptPath; |
21 | 21 | |
22 | | - // Read in localisation messages |
23 | | - wfLoadExtensionMessages( 'SocialProfileUserStats' ); |
24 | | - |
25 | 22 | // Load CSS |
26 | 23 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserStats/TopList.css' ); |
27 | 24 | |
Index: trunk/extensions/SocialProfile/UserStats/TopFansByStat.php |
— | — | @@ -18,9 +18,6 @@ |
19 | 19 | global $wgRequest, $wgUser, $wgOut, $wgMemc, $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly, |
20 | 20 | $wgUserLevels, $wgUploadPath, $wgScriptPath; |
21 | 21 | |
22 | | - // Read in localisation messages |
23 | | - wfLoadExtensionMessages( 'SocialProfileUserStats' ); |
24 | | - |
25 | 22 | // Load CSS |
26 | 23 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserStats/TopList.css' ); |
27 | 24 | |
Index: trunk/extensions/SocialProfile/UserStats/UserStatsClass.php |
— | — | @@ -550,7 +550,6 @@ |
551 | 551 | // Check if user advanced on this update |
552 | 552 | if ( $level_number_after > $level_number_before ) { |
553 | 553 | $m = new UserSystemMessage(); |
554 | | - wfLoadExtensionMessages( 'SocialProfileUserStats' ); |
555 | 554 | $m->addMessage( $this->user_name, 2, wfMsgForContent( 'level-advanced-to', $user_level->getLevelName() ) ); |
556 | 555 | $m->sendAdvancementNotificationEmail( $this->user_id, $user_level->getLevelName() ); |
557 | 556 | } |
Index: trunk/extensions/SocialProfile/UserStats/TopUsers.php |
— | — | @@ -17,9 +17,6 @@ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgOut, $wgScriptPath, $wgMemc, $wgUserStatsTrackWeekly, $wgUserStatsTrackMonthly, $wgUserLevels, $wgUploadPath; |
20 | 20 | |
21 | | - // Read in localisation messages |
22 | | - wfLoadExtensionMessages( 'SocialProfileUserStats' ); |
23 | | - |
24 | 21 | // Load CSS |
25 | 22 | $wgOut->addExtensionStyle( $wgScriptPath . '/extensions/SocialProfile/UserStats/TopList.css' ); |
26 | 23 | |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialPopulateExistingUsersProfiles.php |
— | — | @@ -69,7 +69,6 @@ |
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
74 | 73 | $wgOut->addHTML( wfMsgExt( 'populate-user-profile-done', 'parsemag', $count ) ); |
75 | 74 | } |
76 | 75 | } |
Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -115,9 +115,6 @@ |
116 | 116 | function getUserStats( $user_id, $user_name ) { |
117 | 117 | global $wgUserProfileDisplay; |
118 | 118 | |
119 | | - // Load messages, we're gonna need 'em |
120 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
121 | | - |
122 | 119 | if ( $wgUserProfileDisplay['stats'] == false ) { |
123 | 120 | return ''; |
124 | 121 | } |
— | — | @@ -177,9 +174,6 @@ |
178 | 175 | function getProfileSection( $label, $value, $required = true ) { |
179 | 176 | global $wgUser, $wgTitle, $wgOut; |
180 | 177 | |
181 | | - // Load messages, we're gonna need 'em |
182 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
183 | | - |
184 | 178 | $output = ''; |
185 | 179 | if ( $value || $required ) { |
186 | 180 | if ( !$value ) { |
— | — | @@ -200,9 +194,6 @@ |
201 | 195 | function getPersonalInfo( $user_id, $user_name ) { |
202 | 196 | global $wgUser, $wgUserProfileDisplay; |
203 | 197 | |
204 | | - // Load messages, we're gonna need 'em |
205 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
206 | | - |
207 | 198 | if ( $wgUserProfileDisplay['personal'] == false ) { |
208 | 199 | return ''; |
209 | 200 | } |
— | — | @@ -381,9 +372,6 @@ |
382 | 373 | function getInterests( $user_name ) { |
383 | 374 | global $wgUser, $wgUserProfileDisplay; |
384 | 375 | |
385 | | - // Load messages, we're gonna need 'em |
386 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
387 | | - |
388 | 376 | if ( $wgUserProfileDisplay['interests'] == false ) { |
389 | 377 | return ''; |
390 | 378 | } |
— | — | @@ -451,9 +439,6 @@ |
452 | 440 | function getProfileTop( $user_id, $user_name ) { |
453 | 441 | global $wgTitle, $wgUser, $wgUploadPath, $wgLang; |
454 | 442 | |
455 | | - // Load messages, we're gonna need 'em |
456 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
457 | | - |
458 | 443 | $stats = new UserStats( $user_id, $user_name ); |
459 | 444 | $stats_data = $stats->getUserStats(); |
460 | 445 | $user_level = new UserLevel( $stats_data['points'] ); |
— | — | @@ -609,9 +594,6 @@ |
610 | 595 | function getRelationships( $user_name, $rel_type ) { |
611 | 596 | global $wgMemc, $wgUser, $wgUserProfileDisplay, $wgUploadPath; |
612 | 597 | |
613 | | - // Load messages, we're gonna need 'em |
614 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
615 | | - |
616 | 598 | // If not enabled in site settings, don't display |
617 | 599 | if ( $rel_type == 1 ) { |
618 | 600 | if ( $wgUserProfileDisplay['friends'] == false ) { |
— | — | @@ -714,8 +696,6 @@ |
715 | 697 | return ''; |
716 | 698 | } |
717 | 699 | |
718 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
719 | | - |
720 | 700 | $output = ''; |
721 | 701 | |
722 | 702 | $limit = 8; |
— | — | @@ -920,9 +900,6 @@ |
921 | 901 | function getGifts( $user_name ) { |
922 | 902 | global $wgUser, $wgMemc, $wgUserProfileDisplay, $wgUploadPath; |
923 | 903 | |
924 | | - // Load messages, we're gonna need 'em |
925 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
926 | | - |
927 | 904 | // If not enabled in site settings, don't display |
928 | 905 | if ( $wgUserProfileDisplay['gifts'] == false ) { |
929 | 906 | return ''; |
— | — | @@ -1004,9 +981,6 @@ |
1005 | 982 | function getAwards( $user_name ) { |
1006 | 983 | global $wgUser, $wgMemc, $wgUserProfileDisplay, $wgUploadPath; |
1007 | 984 | |
1008 | | - // Load messages, we're gonna need 'em |
1009 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
1010 | | - |
1011 | 985 | // If not enabled in site settings, don't display |
1012 | 986 | if ( $wgUserProfileDisplay['awards'] == false ) { |
1013 | 987 | return ''; |
— | — | @@ -1088,9 +1062,6 @@ |
1089 | 1063 | function getUserBoard( $user_id, $user_name ) { |
1090 | 1064 | global $wgUser, $wgOut, $wgUserProfileDisplay, $wgUserProfileScripts; |
1091 | 1065 | |
1092 | | - // Load messages, we're gonna need 'em |
1093 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
1094 | | - |
1095 | 1066 | if ( $user_id == 0 ) { |
1096 | 1067 | return ''; |
1097 | 1068 | } |
— | — | @@ -1150,8 +1121,6 @@ |
1151 | 1122 | |
1152 | 1123 | if ( $wgUser->getName() !== $user_name ) { |
1153 | 1124 | if ( $wgUser->isLoggedIn() && !$wgUser->isBlocked() ) { |
1154 | | - // Some nice message in a other part of the extension :) |
1155 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
1156 | 1125 | $output .= '<div class="user-page-message-form"> |
1157 | 1126 | <input type="hidden" id="user_name_to" name="user_name_to" value="' . addslashes( $user_name ) . '" /> |
1158 | 1127 | <span style="color:#797979;">' . wfMsgHtml( 'userboard_messagetype' ) . '</span> |
— | — | @@ -1194,8 +1163,6 @@ |
1195 | 1164 | $wgOut->addScriptFile( $wgFanBoxScripts . '/FanBoxes.js' ); |
1196 | 1165 | $wgOut->addExtensionStyle( $wgFanBoxScripts . '/FanBoxes.css' ); |
1197 | 1166 | |
1198 | | - wfLoadExtensionMessages( 'FanBox' ); |
1199 | | - |
1200 | 1167 | $output = ''; |
1201 | 1168 | $f = new UserFanBoxes( $user_name ); |
1202 | 1169 | $user_safe = ( $user_name ); |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialRemoveAvatar.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $user ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgUploadAvatarInRecentChanges; |
20 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
21 | 20 | |
22 | 21 | $this->title = SpecialPage::getTitleFor( 'RemoveAvatar' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialUpdateProfile.php |
— | — | @@ -46,8 +46,6 @@ |
47 | 47 | global $wgUser, $wgOut, $wgRequest, $wgUserProfileScripts, $wgUpdateProfileInRecentChanges, $wgSupressPageTitle; |
48 | 48 | $wgSupressPageTitle = true; |
49 | 49 | |
50 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
51 | | - |
52 | 50 | $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'edit-profile-title' ) ) ); |
53 | 51 | |
54 | 52 | // This feature is only available for logged-in users. |
— | — | @@ -348,8 +346,6 @@ |
349 | 347 | $websites = $s->up_websites; |
350 | 348 | } |
351 | 349 | |
352 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
353 | | - |
354 | 350 | if ( !$location_country ) { |
355 | 351 | $location_country = wfMsgForContent( 'user-profile-default-country' ); |
356 | 352 | } |
— | — | @@ -545,8 +541,6 @@ |
546 | 542 | $drinks = $s->up_drinks; |
547 | 543 | } |
548 | 544 | |
549 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
550 | | - |
551 | 545 | $wgOut->setPageTitle( wfMsg( 'user-profile-section-interests' ) ); |
552 | 546 | $form = UserProfile::getEditProfileNav( wfMsg( 'user-profile-section-interests' ) ); |
553 | 547 | $form .= '<form action="" method="post" enctype="multipart/form-data" name="profile"> |
— | — | @@ -607,8 +601,6 @@ |
608 | 602 | function displayPreferencesForm() { |
609 | 603 | global $wgUser, $wgOut; |
610 | 604 | |
611 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
612 | | - |
613 | 605 | // @todo If the checkboxes are in front of the option, this would look more like Special:Preferences |
614 | 606 | $wgOut->setPageTitle( wfMsg( 'user-profile-section-preferences' ) ); |
615 | 607 | $form = UserProfile::getEditProfileNav( wfMsg( 'user-profile-section-preferences' ) ); |
— | — | @@ -668,8 +660,6 @@ |
669 | 661 | $custom4 = $s->up_custom_4; |
670 | 662 | } |
671 | 663 | |
672 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
673 | | - |
674 | 664 | $wgOut->setHTMLTitle( wfMsg( 'pagetitle', wfMsg( 'user-profile-tidbits-title' ) ) ); |
675 | 665 | $form = '<h1>' . wfMsg( 'user-profile-tidbits-title' ) . '</h1>'; |
676 | 666 | $form .= UserProfile::getEditProfileNav( wfMsg( 'user-profile-section-custom' ) ); |
Index: trunk/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php |
— | — | @@ -65,8 +65,6 @@ |
66 | 66 | function showSuccess( $ext ) { |
67 | 67 | global $wgUser, $wgOut, $wgContLang, $wgDBname, $wgUploadPath, $wgUploadAvatarInRecentChanges; |
68 | 68 | |
69 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
70 | | - |
71 | 69 | $log = new LogPage( wfMsgForContent( 'user-profile-picture-log' ) ); |
72 | 70 | if ( !$wgUploadAvatarInRecentChanges ) { |
73 | 71 | $log->updateRecentChanges = false; |
— | — | @@ -174,8 +172,6 @@ |
175 | 173 | ? 'checked="checked"' |
176 | 174 | : ''; |
177 | 175 | |
178 | | - wfLoadExtensionMessages( 'SocialProfileUserProfile' ); |
179 | | - |
180 | 176 | $output = '<h1>' . wfMsg( 'user-profile-picture-title' ) . '</h1>'; |
181 | 177 | $output .= UserProfile::getEditProfileNav( wfMsg( 'user-profile-section-picture' ) ); |
182 | 178 | $output .= '<div class="profile-info">'; |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialViewRelationshipRequests.php |
— | — | @@ -25,7 +25,6 @@ |
26 | 26 | */ |
27 | 27 | public function execute( $params ) { |
28 | 28 | global $wgUser, $wgOut, $wgRequest, $wgUserRelationshipScripts; |
29 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
30 | 29 | |
31 | 30 | /** |
32 | 31 | * Redirect Non-logged in users to Login Page |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php |
— | — | @@ -29,7 +29,6 @@ |
30 | 30 | public function execute( $params ) { |
31 | 31 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgUserRelationshipScripts; |
32 | 32 | |
33 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
34 | 33 | $this->setHeaders(); |
35 | 34 | |
36 | 35 | $wgOut->addExtensionStyle( $wgUserRelationshipScripts . '/UserRelationship.css' ); |
— | — | @@ -210,7 +209,6 @@ |
211 | 210 | */ |
212 | 211 | function displayForm() { |
213 | 212 | global $wgOut, $wgUploadPath; |
214 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
215 | 213 | |
216 | 214 | $form = ''; |
217 | 215 | |
Index: trunk/extensions/SocialProfile/UserRelationship/Relationship_AjaxFunctions.php |
— | — | @@ -8,8 +8,6 @@ |
9 | 9 | global $wgUser; |
10 | 10 | $out = ''; |
11 | 11 | |
12 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
13 | | - |
14 | 12 | $rel = new UserRelationship( $wgUser->getName() ); |
15 | 13 | if ( $rel->verifyRelationshipRequest( $request_id ) == true ) { |
16 | 14 | $request = $rel->getRequest( $request_id ); |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialRemoveRelationship.php |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | public function execute( $params ) { |
30 | 30 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgUserRelationshipScripts; |
31 | 31 | |
32 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
33 | 32 | $this->setHeaders(); |
34 | 33 | |
35 | 34 | $wgOut->addExtensionStyle( $wgUserRelationshipScripts . '/UserRelationship.css' ); |
— | — | @@ -145,7 +144,6 @@ |
146 | 145 | */ |
147 | 146 | function displayForm() { |
148 | 147 | global $wgOut, $wgUploadPath; |
149 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
150 | 148 | |
151 | 149 | $form = ''; |
152 | 150 | $avatar = new wAvatar( $this->user_id_to, 'l' ); |
Index: trunk/extensions/SocialProfile/UserRelationship/SpecialViewRelationships.php |
— | — | @@ -28,8 +28,6 @@ |
29 | 29 | public function execute( $params ) { |
30 | 30 | global $wgUser, $wgOut, $wgRequest, $wgUserRelationshipScripts, $wgLang; |
31 | 31 | |
32 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
33 | | - |
34 | 32 | $wgOut->addExtensionStyle( $wgUserRelationshipScripts . '/UserRelationship.css' ); |
35 | 33 | |
36 | 34 | $output = ''; |
Index: trunk/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php |
— | — | @@ -14,7 +14,6 @@ |
15 | 15 | * @private |
16 | 16 | */ |
17 | 17 | /* private */ function __construct( $username ) { |
18 | | - wfLoadExtensionMessages( 'SocialProfileUserRelationship' ); |
19 | 18 | $title1 = Title::newFromDBkey( $username ); |
20 | 19 | $this->user_name = $title1->getText(); |
21 | 20 | $this->user_id = User::idFromName( $this->user_name ); |
Index: trunk/extensions/SocialProfile/SystemGifts/UserSystemGiftsClass.php |
— | — | @@ -62,7 +62,6 @@ |
63 | 63 | $user = User::newFromId( $user_id_to ); |
64 | 64 | $user->loadFromDatabase(); |
65 | 65 | if ( $user->isEmailConfirmed() && $user->getIntOption( 'notifygift', 1 ) ) { |
66 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
67 | 66 | $gifts_link = SpecialPage::getTitleFor( 'ViewSystemGifts' ); |
68 | 67 | $update_profile_link = SpecialPage::getTitleFor( 'UpdateProfile' ); |
69 | 68 | $subject = wfMsgExt( 'system_gift_received_subject', 'parsemag', |
Index: trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManager.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgScriptPath, $wgSystemGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->setPageTitle( wfMsg( 'systemgiftmanager' ) ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/SystemGifts/SpecialViewSystemGift.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgUploadPath, $wgSystemGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->addExtensionStyle( $wgSystemGiftsScripts . '/SystemGift.css' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/SystemGifts/SpecialSystemGiftManagerLogo.php |
— | — | @@ -405,7 +405,6 @@ |
406 | 406 | */ |
407 | 407 | function showSuccess( $status ) { |
408 | 408 | global $wgUser, $wgOut, $wgUploadPath, $wgScriptPath, $wgLang; |
409 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
410 | 409 | $ext = 'jpg'; |
411 | 410 | |
412 | 411 | $output = '<h2>' . wfMsg( 'ga-uploadsuccess' ) . '</h2>'; |
— | — | @@ -457,7 +456,6 @@ |
458 | 457 | */ |
459 | 458 | function uploadError( $error ) { |
460 | 459 | global $wgOut; |
461 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
462 | 460 | $sub = wfMsg( 'uploadwarning' ); |
463 | 461 | $wgOut->addHTML( "<h2>{$sub}</h2>\n" ); |
464 | 462 | $wgOut->addHTML( "<h4 class='error'>{$error}</h4>\n" ); |
— | — | @@ -534,7 +532,6 @@ |
535 | 533 | function mainUploadForm( $msg = '' ) { |
536 | 534 | global $wgOut, $wgUser, $wgLang, $wgUploadDirectory, $wgRequest; |
537 | 535 | global $wgUseCopyrightUpload; |
538 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
539 | 536 | |
540 | 537 | $cols = intval( $wgUser->getOption( 'cols' ) ); |
541 | 538 | $ew = $wgUser->getOption( 'editwidth' ); |
Index: trunk/extensions/SocialProfile/SystemGifts/SpecialViewSystemGifts.php |
— | — | @@ -16,7 +16,6 @@ |
17 | 17 | */ |
18 | 18 | public function execute( $par ) { |
19 | 19 | global $wgUser, $wgOut, $wgRequest, $wgMemc, $wgUploadPath, $wgSystemGiftsScripts; |
20 | | - wfLoadExtensionMessages( 'SystemGifts' ); |
21 | 20 | |
22 | 21 | $wgOut->addExtensionStyle( $wgSystemGiftsScripts . '/SystemGift.css' ); |
23 | 22 | |
Index: trunk/extensions/SocialProfile/UserBoard/UserBoardClass.php |
— | — | @@ -82,7 +82,6 @@ |
83 | 83 | if ( $user->isEmailConfirmed() && $user->getIntOption( 'notifymessage', 1 ) ) { |
84 | 84 | $board_link = SpecialPage::getTitleFor( 'UserBoard' ); |
85 | 85 | $update_profile_link = SpecialPage::getTitleFor( 'UpdateProfile' ); |
86 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
87 | 86 | $subject = wfMsgExt( 'message_received_subject', 'parsemag', |
88 | 87 | $user_from |
89 | 88 | ); |
— | — | @@ -280,7 +279,6 @@ |
281 | 280 | |
282 | 281 | $output = ''; // Prevent E_NOTICE |
283 | 282 | $messages = $this->getUserBoardMessages( $user_id, $user_id_2, $count, $page ); |
284 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
285 | 283 | if ( $messages ) { |
286 | 284 | |
287 | 285 | foreach ( $messages as $message ) { |
— | — | @@ -380,7 +378,6 @@ |
381 | 379 | } |
382 | 380 | |
383 | 381 | public function getTimeOffset( $time, $timeabrv, $timename ) { |
384 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
385 | 382 | $timeStr = ''; |
386 | 383 | if ( $time[$timeabrv] > 0 ) { |
387 | 384 | $timeStr = wfMsgExt( "userboard-time-{$timename}", 'parsemag', $time[$timeabrv] ); |
Index: trunk/extensions/SocialProfile/UserBoard/SpecialUserBoard.php |
— | — | @@ -29,8 +29,6 @@ |
30 | 30 | public function execute( $params ) { |
31 | 31 | global $wgUser, $wgOut, $wgRequest, $wgScriptPath, $wgUserBoardScripts; |
32 | 32 | |
33 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
34 | | - |
35 | 33 | // Add CSS |
36 | 34 | $wgOut->addExtensionStyle( $wgUserBoardScripts . '/UserBoard.css' ); |
37 | 35 | |
Index: trunk/extensions/SocialProfile/UserBoard/SpecialSendBoardBlast.php |
— | — | @@ -30,8 +30,6 @@ |
31 | 31 | $wgOut->addExtensionStyle( $wgUserBoardScripts . '/BoardBlast.css' ); |
32 | 32 | $wgOut->addScriptFile( $wgUserBoardScripts . '/BoardBlast.js' ); |
33 | 33 | |
34 | | - wfLoadExtensionMessages( 'SocialProfileUserBoard' ); |
35 | | - |
36 | 34 | $output = ''; |
37 | 35 | |
38 | 36 | // This feature is available only to logged-in users. |