Index: trunk/extensions/LiquidThreads/compat/HTMLForm.php |
— | — | @@ -25,8 +25,6 @@ |
26 | 26 | ); |
27 | 27 | |
28 | 28 | function __construct( $descriptor, $messagePrefix ) { |
29 | | - wfLoadExtensionMessages( 'Lqt-Compat' ); |
30 | | - |
31 | 29 | $this->mMessagePrefix = $messagePrefix; |
32 | 30 | |
33 | 31 | // Expand out into a tree. |
— | — | @@ -188,8 +186,8 @@ |
189 | 187 | global $wgUser; |
190 | 188 | $html = ''; |
191 | 189 | |
192 | | - $html .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . "\n"; |
193 | | - $html .= Xml::hidden( 'title', $this->getTitle() ) . "\n"; |
| 190 | + $html .= Html::hidden( 'wpEditToken', $wgUser->editToken() ) . "\n"; |
| 191 | + $html .= Html::hidden( 'title', $this->getTitle() ) . "\n"; |
194 | 192 | |
195 | 193 | return $html; |
196 | 194 | } |
Index: trunk/extensions/LiquidThreads/classes/Threads.php |
— | — | @@ -59,7 +59,6 @@ |
60 | 60 | public static function createTalkpageIfNeeded( $talkpage ) { |
61 | 61 | if ( ! $talkpage->exists() ) { |
62 | 62 | try { |
63 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
64 | 63 | $talkpage->doEdit( |
65 | 64 | "", |
66 | 65 | wfMsgForContent( 'lqt_talkpage_autocreate_summary' ), |
— | — | @@ -76,7 +75,7 @@ |
77 | 76 | $rows = array(); |
78 | 77 | $threads = array(); |
79 | 78 | |
80 | | - while ( $row = $db->fetchObject( $res ) ) { |
| 79 | + foreach( $res as $row ) { |
81 | 80 | $rows[] = $row; |
82 | 81 | |
83 | 82 | if ( !$bulkLoad ) { |
— | — | @@ -190,8 +189,6 @@ |
191 | 190 | } |
192 | 191 | |
193 | 192 | static function newThreadTitle( $subject, $article ) { |
194 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
195 | | - |
196 | 193 | $base = $article->getTitle()->getPrefixedText() . "/$subject"; |
197 | 194 | |
198 | 195 | return self::incrementedTitle( $base, NS_LQT_THREAD ); |
— | — | @@ -202,7 +199,6 @@ |
203 | 200 | } |
204 | 201 | |
205 | 202 | static function newReplyTitle( $thread, $user ) { |
206 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
207 | 203 | $topThread = $thread->topmostThread(); |
208 | 204 | |
209 | 205 | $base = $topThread->title()->getText() . '/' |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -291,12 +291,11 @@ |
292 | 292 | function perpetuate( $name, $as = 'hidden' ) { |
293 | 293 | $value = $this->request->getVal( $name, '' ); |
294 | 294 | if ( $as == 'hidden' ) { |
295 | | - return Xml::hidden( $name, $value ); |
| 295 | + return Html::hidden( $name, $value ); |
296 | 296 | } |
297 | 297 | } |
298 | 298 | |
299 | 299 | function showReplyProtectedNotice( $thread ) { |
300 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
301 | 300 | $log_url = SpecialPage::getTitleFor( 'Log' )->getFullURL( |
302 | 301 | "type=protect&user=&page={$thread->title()->getPrefixedURL()}" ); |
303 | 302 | $this->output->addHTML( '<p>' . wfMsg( 'lqt_protectedfromreply', |
— | — | @@ -425,7 +424,7 @@ |
426 | 425 | $e->editFormTextBeforeContent .= |
427 | 426 | $this->perpetuate( 'lqt_method', 'hidden' ) . |
428 | 427 | $this->perpetuate( 'lqt_operand', 'hidden' ) . |
429 | | - Xml::hidden( 'lqt_nonce', wfGenerateToken() ); |
| 428 | + Html::hidden( 'lqt_nonce', wfGenerateToken() ); |
430 | 429 | |
431 | 430 | $e->mShowSummaryField = false; |
432 | 431 | |
— | — | @@ -536,9 +535,9 @@ |
537 | 536 | $e->editFormTextBeforeContent .= |
538 | 537 | $this->perpetuate( 'lqt_method', 'hidden' ) . |
539 | 538 | $this->perpetuate( 'lqt_operand', 'hidden' ) . |
540 | | - Xml::hidden( 'lqt_nonce', wfGenerateToken() ) . |
541 | | - Xml::hidden( 'offset', $offset ) . |
542 | | - Xml::hidden( 'wpMinorEdit', '' ); |
| 539 | + Html::hidden( 'lqt_nonce', wfGenerateToken() ) . |
| 540 | + Html::hidden( 'offset', $offset ) . |
| 541 | + Html::hidden( 'wpMinorEdit', '' ); |
543 | 542 | |
544 | 543 | list( $signatureEditor, $signatureHTML ) = $this->getSignatureEditor( $this->user ); |
545 | 544 | |
— | — | @@ -644,8 +643,8 @@ |
645 | 644 | $e->editFormTextBeforeContent .= |
646 | 645 | $this->perpetuate( 'lqt_method', 'hidden' ) . |
647 | 646 | $this->perpetuate( 'lqt_operand', 'hidden' ) . |
648 | | - Xml::hidden( 'lqt_nonce', wfGenerateToken() ) . |
649 | | - Xml::hidden( 'offset', $offset ); |
| 647 | + Html::hidden( 'lqt_nonce', wfGenerateToken() ) . |
| 648 | + Html::hidden( 'offset', $offset ); |
650 | 649 | |
651 | 650 | list( $signatureEditor, $signatureHTML ) = $this->getSignatureEditor( $thread ); |
652 | 651 | |
— | — | @@ -725,8 +724,8 @@ |
726 | 725 | $e->editFormTextBeforeContent .= |
727 | 726 | $this->perpetuate( 'lqt_method', 'hidden' ) . |
728 | 727 | $this->perpetuate( 'lqt_operand', 'hidden' ) . |
729 | | - Xml::hidden( 'lqt_nonce', wfGenerateToken() ) . |
730 | | - Xml::hidden( 'offset', $offset ); |
| 728 | + Html::hidden( 'lqt_nonce', wfGenerateToken() ) . |
| 729 | + Html::hidden( 'offset', $offset ); |
731 | 730 | |
732 | 731 | $e->edit(); |
733 | 732 | |
— | — | @@ -1011,7 +1010,6 @@ |
1012 | 1011 | * ) |
1013 | 1012 | */ |
1014 | 1013 | function threadCommands( $thread ) { |
1015 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
1016 | 1014 | $commands = array(); |
1017 | 1015 | |
1018 | 1016 | $history_url = self::permalinkUrlWithQuery( $thread, array( 'action' => 'history' ) ); |
— | — | @@ -1090,8 +1088,6 @@ |
1091 | 1089 | |
1092 | 1090 | // Commands for the bottom. |
1093 | 1091 | function threadMajorCommands( $thread ) { |
1094 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
1095 | | - |
1096 | 1092 | if ( $thread->isHistorical() ) { |
1097 | 1093 | // No links for historical threads. |
1098 | 1094 | $history_url = self::permalinkUrlWithQuery( $thread, |
— | — | @@ -1155,7 +1151,6 @@ |
1156 | 1152 | } |
1157 | 1153 | |
1158 | 1154 | function topLevelThreadCommands( $thread ) { |
1159 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
1160 | 1155 | $commands = array(); |
1161 | 1156 | |
1162 | 1157 | $commands['history'] = array( |
— | — | @@ -1253,8 +1248,6 @@ |
1254 | 1249 | } |
1255 | 1250 | |
1256 | 1251 | static function exportJSLocalisation() { |
1257 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
1258 | | - |
1259 | 1252 | $messages = array( |
1260 | 1253 | 'lqt-quote-intro', |
1261 | 1254 | 'lqt-quote', |
— | — | @@ -1578,7 +1571,7 @@ |
1579 | 1572 | |
1580 | 1573 | if ( $show ) { |
1581 | 1574 | $html = Xml::tags( 'span', array( 'class' => 'mw-headline' ), $html ); |
1582 | | - $html .= Xml::hidden( 'raw-header', $thread->subject() ); |
| 1575 | + $html .= Html::hidden( 'raw-header', $thread->subject() ); |
1583 | 1576 | $html = Xml::tags( 'h' . $this->headerLevel, |
1584 | 1577 | array( 'class' => 'lqt_header', 'id' => $id ), |
1585 | 1578 | $html ) . $commands_html; |
— | — | @@ -1663,8 +1656,6 @@ |
1664 | 1657 | |
1665 | 1658 | // Shows a single thread, rather than a thread tree. |
1666 | 1659 | function showSingleThread( $thread ) { |
1667 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
1668 | | - |
1669 | 1660 | $html = ''; |
1670 | 1661 | |
1671 | 1662 | // If it's a 'moved' thread, show the placeholder |
— | — | @@ -1733,7 +1724,7 @@ |
1734 | 1725 | |
1735 | 1726 | $link = $sk->link( $linkTitle, $linkText, |
1736 | 1727 | array( 'class' => 'lqt-show-more-posts' ) ); |
1737 | | - $link .= Xml::hidden( 'lqt-thread-start-at', $i, |
| 1728 | + $link .= Html::hidden( 'lqt-thread-start-at', $i, |
1738 | 1729 | array( 'class' => 'lqt-thread-start-at' ) ); |
1739 | 1730 | |
1740 | 1731 | return $link; |
— | — | @@ -1964,13 +1955,13 @@ |
1965 | 1956 | 'class' => 'lqt-thread-modified' |
1966 | 1957 | ) |
1967 | 1958 | ); |
1968 | | - $html .= Xml::hidden( |
| 1959 | + $html .= Html::hidden( |
1969 | 1960 | 'lqt-thread-sortkey', |
1970 | 1961 | $thread->sortkey(), |
1971 | 1962 | array( 'id' => 'lqt-thread-sortkey-' . $thread->id() ) |
1972 | 1963 | ); |
1973 | 1964 | |
1974 | | - $html .= Xml::hidden( |
| 1965 | + $html .= Html::hidden( |
1975 | 1966 | 'lqt-thread-talkpage-' . $thread->id(), |
1976 | 1967 | $thread->article()->getTitle()->getPrefixedText(), |
1977 | 1968 | array( |
— | — | @@ -1984,7 +1975,7 @@ |
1985 | 1976 | } |
1986 | 1977 | |
1987 | 1978 | // Add the thread's title |
1988 | | - $html .= Xml::hidden( |
| 1979 | + $html .= Html::hidden( |
1989 | 1980 | 'lqt-thread-title-' . $thread->id(), |
1990 | 1981 | $thread->title()->getPrefixedText(), |
1991 | 1982 | array( |
— | — | @@ -2114,9 +2105,12 @@ |
2115 | 2106 | } |
2116 | 2107 | |
2117 | 2108 | function getSummary( $t ) { |
2118 | | - if ( !$t->summary() ) return; |
2119 | | - if ( !$t->summary()->getContent() ) return; // Blank summary |
2120 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
| 2109 | + if ( !$t->summary() ) { |
| 2110 | + return; |
| 2111 | + } |
| 2112 | + if ( !$t->summary()->getContent() ) { |
| 2113 | + return; // Blank summary |
| 2114 | + } |
2121 | 2115 | global $wgUser; |
2122 | 2116 | $sk = $wgUser->getSkin(); |
2123 | 2117 | |
— | — | @@ -2134,7 +2128,7 @@ |
2135 | 2129 | |
2136 | 2130 | $link = $sk->link( $t->summary()->getTitle(), $link_text, |
2137 | 2131 | array( 'class' => 'lqt-summary-link' ) ); |
2138 | | - $link .= Xml::hidden( 'summary-title', $t->summary()->getTitle()->getPrefixedText() ); |
| 2132 | + $link .= Html::hidden( 'summary-title', $t->summary()->getTitle()->getPrefixedText() ); |
2139 | 2133 | $edit_link = self::permalink( $t, $edit_text, 'summarize', $t->id() ); |
2140 | 2134 | $links = "[$link]\n[$edit_link]"; |
2141 | 2135 | $html .= Xml::tags( |
Index: trunk/extensions/LiquidThreads/classes/Hooks.php |
— | — | @@ -25,10 +25,11 @@ |
26 | 26 | return true; |
27 | 27 | |
28 | 28 | $thread = Threads::withRoot( new Article( $rc->getTitle() ) ); |
29 | | - if ( !$thread ) return true; |
| 29 | + if ( !$thread ) { |
| 30 | + return true; |
| 31 | + } |
30 | 32 | |
31 | 33 | LqtView::addJSandCSS(); |
32 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
33 | 34 | |
34 | 35 | global $wgUser, $wgLang; |
35 | 36 | $sk = $wgUser->getSkin(); |
— | — | @@ -62,7 +63,6 @@ |
63 | 64 | static function setNewtalkHTML( $skintemplate, $tpl ) { |
64 | 65 | global $wgUser, $wgTitle, $wgOut; |
65 | 66 | |
66 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
67 | 67 | $newmsg_t = SpecialPage::getTitleFor( 'NewMessages' ); |
68 | 68 | $watchlist_t = SpecialPage::getTitleFor( 'Watchlist' ); |
69 | 69 | $usertalk_t = $wgUser->getTalkPage(); |
— | — | @@ -105,7 +105,6 @@ |
106 | 106 | return true; |
107 | 107 | |
108 | 108 | LqtView::addJSandCSS(); |
109 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
110 | 109 | $messages_title = SpecialPage::getTitleFor( 'NewMessages' ); |
111 | 110 | $new_messages = wfMsgExt( 'lqt-new-messages', 'parseinline' ); |
112 | 111 | |
— | — | @@ -119,7 +118,6 @@ |
120 | 119 | |
121 | 120 | static function getPreferences( $user, &$preferences ) { |
122 | 121 | global $wgEnableEmail; |
123 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
124 | 122 | |
125 | 123 | if ( $wgEnableEmail ) { |
126 | 124 | $preferences['lqtnotifytalk'] = |
— | — | @@ -253,7 +251,6 @@ |
254 | 252 | } |
255 | 253 | |
256 | 254 | if ( $title->getNamespace() == NS_LQT_THREAD && self::$editType != 'new' ) { |
257 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
258 | 255 | $label = wfMsgExt( 'lqt-edit-bump', 'parseinline' ); |
259 | 256 | $tooltip = wfMsgExt( 'lqt-edit-bump-tooltip', 'parsemag' ); |
260 | 257 | |
— | — | @@ -275,8 +272,6 @@ |
276 | 273 | } |
277 | 274 | |
278 | 275 | static function customiseSearchProfiles( &$profiles ) { |
279 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
280 | | - |
281 | 276 | $namespaces = array( NS_LQT_THREAD, NS_LQT_SUMMARY ); |
282 | 277 | |
283 | 278 | // Add odd namespaces |
— | — | @@ -406,8 +401,6 @@ |
407 | 402 | return true; |
408 | 403 | } |
409 | 404 | |
410 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
411 | | - |
412 | 405 | $newMessagesCount = NewMessages::newMessageCount( $wgUser ); |
413 | 406 | |
414 | 407 | // Add new messages link. |
— | — | @@ -555,8 +548,6 @@ |
556 | 549 | * @param $key String: message key that should contain a template page name |
557 | 550 | */ |
558 | 551 | private static function getTextForPageInKey( $key ) { |
559 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
560 | | - |
561 | 552 | $templateTitleText = wfMsgForContent( $key ); |
562 | 553 | $templateTitle = Title::newFromText( $templateTitleText ); |
563 | 554 | |
Index: trunk/extensions/LiquidThreads/classes/NewMessagesController.php |
— | — | @@ -165,7 +165,7 @@ |
166 | 166 | $userIds = array(); |
167 | 167 | $notifyUsers = array(); |
168 | 168 | $obj = self::getRowsObject( $t ); |
169 | | - while ( $row = $dbr->fetchObject( $obj ) ) { |
| 169 | + foreach( $res as $row ) { |
170 | 170 | // Don't notify yourself |
171 | 171 | if ( $changeUser->getId() == $row->wl_user ) |
172 | 172 | continue; |
— | — | @@ -248,7 +248,6 @@ |
249 | 249 | } |
250 | 250 | |
251 | 251 | static function notifyUsersByMail( $t, $watching_users, $timestamp, $type ) { |
252 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
253 | 252 | $messages = array( |
254 | 253 | Threads::CHANGE_REPLY_CREATED => 'lqt-enotif-reply', |
255 | 254 | Threads::CHANGE_NEW_THREAD => 'lqt-enotif-newthread', |
— | — | @@ -319,7 +318,7 @@ |
320 | 319 | |
321 | 320 | // Parse content and strip HTML of post content |
322 | 321 | |
323 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 322 | + foreach( $res as $row ) { |
324 | 323 | $u = User::newFromRow( $row ); |
325 | 324 | |
326 | 325 | if ( $oldPreferenceFormat ) { |
Index: trunk/extensions/LiquidThreads/classes/DeletionController.php |
— | — | @@ -22,7 +22,6 @@ |
23 | 23 | $thread->delete( $reason ); |
24 | 24 | |
25 | 25 | // Avoid orphaning subthreads, update their parentage. |
26 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
27 | 26 | if ( $thread->replies() && $thread->isTopmostThread() ) { |
28 | 27 | $reason = wfMsg( 'lqt-delete-parent-deleted', $reason ); |
29 | 28 | self::recursivelyDeleteReplies( $thread, $reason ); |
— | — | @@ -102,10 +101,11 @@ |
103 | 102 | |
104 | 103 | $thread = Threads::withRoot( $article ); |
105 | 104 | |
106 | | - if ( !$thread ) return true; |
| 105 | + if ( !$thread ) { |
| 106 | + return true; |
| 107 | + } |
107 | 108 | |
108 | 109 | if ( $thread->isTopmostThread() && count( $thread->replies() ) ) { |
109 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
110 | 110 | $out->wrapWikiMsg( |
111 | 111 | '<strong>$1</strong>', |
112 | 112 | 'lqt-delete-parent-warning' |
Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -607,13 +607,14 @@ |
608 | 608 | 'thread_type != ' . $dbr->addQuotes( Threads::TYPE_DELETED ) ), |
609 | 609 | __METHOD__ ); |
610 | 610 | |
611 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 611 | + foreach( $res as $row ) { |
612 | 612 | // Grab page data while we're here. |
613 | | - if ( $row->thread_root ) |
| 613 | + if ( $row->thread_root ) { |
614 | 614 | $pageIds[] = $row->thread_root; |
615 | | - if ( $row->thread_summary_page ) |
| 615 | + } |
| 616 | + if ( $row->thread_summary_page ) { |
616 | 617 | $pageIds[] = $row->thread_summary_page; |
617 | | - |
| 618 | + } |
618 | 619 | $all_thread_rows[] = $row; |
619 | 620 | $all_thread_ids[$row->thread_id] = $row->thread_id; |
620 | 621 | } |
— | — | @@ -659,13 +660,13 @@ |
660 | 661 | $restrictionRows = array_fill_keys( $pageIds, array() ); |
661 | 662 | $res = $dbr->select( 'page_restrictions', '*', array( 'pr_page' => $pageIds ), |
662 | 663 | __METHOD__ ); |
663 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 664 | + foreach( $res as $row ) { |
664 | 665 | $restrictionRows[$row->pr_page][] = $row; |
665 | 666 | } |
666 | 667 | |
667 | 668 | $res = $dbr->select( 'page', '*', array( 'page_id' => $pageIds ), __METHOD__ ); |
668 | 669 | |
669 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 670 | + foreach( $res as $row ) { |
670 | 671 | $t = Title::newFromRow( $row ); |
671 | 672 | |
672 | 673 | if ( isset( $restrictionRows[$t->getArticleId()] ) ) { |
— | — | @@ -1008,7 +1009,7 @@ |
1009 | 1010 | __METHOD__ ); |
1010 | 1011 | |
1011 | 1012 | $rows = array(); |
1012 | | - while ( $row = $dbr->fetchObject( $res ) ) { |
| 1013 | + foreach( $res as $row ) { |
1013 | 1014 | $rows[] = $row; |
1014 | 1015 | } |
1015 | 1016 | |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHeaderView.php |
— | — | @@ -42,8 +42,6 @@ |
43 | 43 | global $wgOut, $wgTitle, $wgRequest; |
44 | 44 | |
45 | 45 | if ( $wgRequest->getVal( 'action' ) === 'edit' ) { |
46 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
47 | | - |
48 | 46 | $html = ''; |
49 | 47 | |
50 | 48 | $warn_bold = Xml::tags( |
Index: trunk/extensions/LiquidThreads/pages/SpecialMoveThread.php |
— | — | @@ -6,7 +6,6 @@ |
7 | 7 | * @see SpecialPage::getDescription |
8 | 8 | */ |
9 | 9 | function getDescription() { |
10 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
11 | 10 | return wfMsg( 'lqt_movethread' ); |
12 | 11 | } |
13 | 12 | |
— | — | @@ -27,7 +26,6 @@ |
28 | 27 | function getPageName() { return 'MoveThread'; } |
29 | 28 | |
30 | 29 | function getSubmitText() { |
31 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
32 | 30 | return wfMsg( 'lqt_move_move' ); |
33 | 31 | } |
34 | 32 | |
Index: trunk/extensions/LiquidThreads/pages/ThreadActionPage.php |
— | — | @@ -19,8 +19,6 @@ |
20 | 20 | protected function getRightRequirement() { return ''; } |
21 | 21 | |
22 | 22 | function execute( $par ) { |
23 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
24 | | - |
25 | 23 | global $wgOut, $wgUser; |
26 | 24 | |
27 | 25 | if ( !$this->userCanExecute( $wgUser ) ) { |
— | — | @@ -44,7 +42,6 @@ |
45 | 43 | // Handle parameter |
46 | 44 | $this->mTarget = $par; |
47 | 45 | if ( $par === null || $par === "" ) { |
48 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
49 | 46 | $this->output->addHTML( wfMsg( 'lqt_threadrequired' ) ); |
50 | 47 | return false; |
51 | 48 | } |
Index: trunk/extensions/LiquidThreads/pages/ThreadHistoricalRevisionView.php |
— | — | @@ -46,7 +46,6 @@ |
47 | 47 | |
48 | 48 | function showHistoryInfo() { |
49 | 49 | global $wgLang; |
50 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
51 | 50 | |
52 | 51 | $html = wfMsgExt( |
53 | 52 | 'lqt_revision_as_of', |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -5,8 +5,6 @@ |
6 | 6 | function show() { |
7 | 7 | global $wgUser; |
8 | 8 | |
9 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
10 | | - |
11 | 9 | $sk = $wgUser->getSkin(); |
12 | 10 | |
13 | 11 | $talkpageTitle = $this->article->getTitle(); |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -13,8 +13,6 @@ |
14 | 14 | } |
15 | 15 | |
16 | 16 | static function customizeThreadTabs( $skintemplate, &$content_actions, $view ) { |
17 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
18 | | - |
19 | 17 | if ( !$view->thread ) { |
20 | 18 | return true; |
21 | 19 | } |
— | — | @@ -135,19 +133,15 @@ |
136 | 134 | } |
137 | 135 | |
138 | 136 | function noSuchRevision() { |
139 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
140 | 137 | $this->output->addWikiMsg( 'lqt_nosuchrevision' ); |
141 | 138 | } |
142 | 139 | |
143 | 140 | function showMissingThreadPage() { |
144 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
145 | 141 | $this->output->setPageTitle( wfMsg( 'lqt_nosuchthread_title' ) ); |
146 | 142 | $this->output->addWikiMsg( 'lqt_nosuchthread' ); |
147 | 143 | } |
148 | 144 | |
149 | 145 | function getSubtitle() { |
150 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
151 | | - |
152 | 146 | $sk = $this->user->getSkin(); |
153 | 147 | $fragment = '#' . $this->anchorName( $this->thread ); |
154 | 148 | |
Index: trunk/extensions/LiquidThreads/pages/NewUserMessagesView.php |
— | — | @@ -8,8 +8,8 @@ |
9 | 9 | protected function htmlForReadButton( $label, $title, $class, $ids ) { |
10 | 10 | $ids_s = implode( ',', $ids ); |
11 | 11 | $html = ''; |
12 | | - $html .= Xml::hidden( 'lqt_method', 'mark_as_read' ); |
13 | | - $html .= Xml::hidden( 'lqt_operand', $ids_s ); |
| 12 | + $html .= Html::hidden( 'lqt_method', 'mark_as_read' ); |
| 13 | + $html .= Html::hidden( 'lqt_operand', $ids_s ); |
14 | 14 | $html .= Xml::submitButton( |
15 | 15 | $label, |
16 | 16 | array( |
— | — | @@ -24,7 +24,6 @@ |
25 | 25 | } |
26 | 26 | |
27 | 27 | function getReadAllButton( ) { |
28 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
29 | 28 | return $this->htmlForReadButton( |
30 | 29 | wfMsg( 'lqt-read-all' ), |
31 | 30 | wfMsg( 'lqt-read-all-tooltip' ), |
— | — | @@ -34,7 +33,6 @@ |
35 | 34 | } |
36 | 35 | |
37 | 36 | function getUndoButton( $ids ) { |
38 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
39 | 37 | |
40 | 38 | if ( count( $ids ) == 1 ) { |
41 | 39 | $t = Threads::withId( $ids[0] ); |
— | — | @@ -49,8 +47,8 @@ |
50 | 48 | |
51 | 49 | $html = ''; |
52 | 50 | $html .= $msg; |
53 | | - $html .= Xml::hidden( 'lqt_method', 'mark_as_unread' ); |
54 | | - $html .= Xml::hidden( 'lqt_operand', $operand ); |
| 51 | + $html .= Html::hidden( 'lqt_method', 'mark_as_unread' ); |
| 52 | + $html .= Html::hidden( 'lqt_operand', $operand ); |
55 | 53 | $html .= Xml::submitButton( |
56 | 54 | wfMsg( 'lqt-email-undo' ), |
57 | 55 | array( |
Index: trunk/extensions/LiquidThreads/pages/SpecialHotTopics.php |
— | — | @@ -7,8 +7,6 @@ |
8 | 8 | function execute( $par ) { |
9 | 9 | global $wgOut; |
10 | 10 | |
11 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
12 | | - |
13 | 11 | $this->setHeaders(); |
14 | 12 | |
15 | 13 | $wgOut->setPageTitle( wfMsg( 'lqt-hot-topics' ) ); |
Index: trunk/extensions/LiquidThreads/pages/ThreadHistoryListingView.php |
— | — | @@ -7,7 +7,6 @@ |
8 | 8 | $this->showMissingThreadPage(); |
9 | 9 | return false; |
10 | 10 | } |
11 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
12 | 11 | |
13 | 12 | $this->thread->updateHistory(); |
14 | 13 | |
Index: trunk/extensions/LiquidThreads/pages/SpecialNewMessages.php |
— | — | @@ -13,13 +13,11 @@ |
14 | 14 | * @see SpecialPage::getDescription |
15 | 15 | */ |
16 | 16 | function getDescription() { |
17 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
18 | 17 | return wfMsg( 'lqt_newmessages-title' ); |
19 | 18 | } |
20 | 19 | |
21 | 20 | function execute( $par ) { |
22 | 21 | global $wgOut, $wgRequest, $wgUser; |
23 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
24 | 22 | $this->user = $wgUser; |
25 | 23 | $this->output = $wgOut; |
26 | 24 | $this->request = $wgRequest; |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -61,7 +61,6 @@ |
62 | 62 | |
63 | 63 | $article = new Article( $this->title ); |
64 | 64 | |
65 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
66 | 65 | // If $article_text == "", the talkpage was probably just created |
67 | 66 | // when the first thread was posted to make the links blue. |
68 | 67 | if ( $article->exists() ) { |
— | — | @@ -120,8 +119,6 @@ |
121 | 120 | function getTOC( $threads ) { |
122 | 121 | global $wgLang; |
123 | 122 | |
124 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
125 | | - |
126 | 123 | $html = ''; |
127 | 124 | |
128 | 125 | $h2_header = Xml::tags( 'h2', null, wfMsgExt( 'lqt_contents_title', 'parseinline' ) ); |
— | — | @@ -178,7 +175,6 @@ |
179 | 176 | } |
180 | 177 | |
181 | 178 | function getArchiveWidget( ) { |
182 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
183 | 179 | $url = $this->talkpageUrl( $this->title, 'talkpage_archive' ); |
184 | 180 | |
185 | 181 | $html = ''; |
— | — | @@ -187,8 +183,6 @@ |
188 | 184 | } |
189 | 185 | |
190 | 186 | function showTalkpageViewOptions( $article ) { |
191 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
192 | | - |
193 | 187 | if ( $article->exists() ) { |
194 | 188 | $form_action_url = $this->talkpageUrl( $this->title, 'talkpage_sort_order' ); |
195 | 189 | $html = ''; |
— | — | @@ -214,7 +208,7 @@ |
215 | 209 | $html .= $sortOrderSelect->getHTML(); |
216 | 210 | |
217 | 211 | $html .= Xml::submitButton( wfMsg( 'go' ), array( 'class' => 'lqt_go_sort' ) ); |
218 | | - $html .= Xml::hidden( 'title', $this->title->getPrefixedText() ); |
| 212 | + $html .= Html::hidden( 'title', $this->title->getPrefixedText() ); |
219 | 213 | |
220 | 214 | |
221 | 215 | $html = Xml::tags( |
— | — | @@ -233,7 +227,6 @@ |
234 | 228 | } |
235 | 229 | |
236 | 230 | function show() { |
237 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
238 | 231 | LqtView::addJSandCSS(); |
239 | 232 | |
240 | 233 | $this->output->setPageTitle( $this->title->getPrefixedText() ); |
— | — | @@ -366,7 +359,7 @@ |
367 | 360 | ); |
368 | 361 | |
369 | 362 | $html .= ' ' . Xml::submitButton( wfMsg( 'lqt-search-button' ) ); |
370 | | - $html .= Xml::hidden( 'title', $this->title->getPrefixedText() ); |
| 363 | + $html .= Html::hidden( 'title', $this->title->getPrefixedText() ); |
371 | 364 | $html = Xml::tags( |
372 | 365 | 'form', |
373 | 366 | array( |
Index: trunk/extensions/LiquidThreads/pages/SpecialSplitThread.php |
— | — | @@ -26,7 +26,6 @@ |
27 | 27 | * @see SpecialPage::getDescription |
28 | 28 | */ |
29 | 29 | function getDescription() { |
30 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
31 | 30 | return wfMsg( 'lqt_split_thread' ); |
32 | 31 | } |
33 | 32 | |
— | — | @@ -70,7 +69,6 @@ |
71 | 70 | } |
72 | 71 | |
73 | 72 | function getSubmitText() { |
74 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
75 | 73 | return wfMsg( 'lqt-split-submit' ); |
76 | 74 | } |
77 | 75 | } |
Index: trunk/extensions/LiquidThreads/pages/SummaryPageView.php |
— | — | @@ -3,7 +3,6 @@ |
4 | 4 | |
5 | 5 | class SummaryPageView extends LqtView { |
6 | 6 | function show() { |
7 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
8 | 7 | $thread = Threads::withSummary( $this->article ); |
9 | 8 | if ( $thread && $thread->root() ) { |
10 | 9 | global $wgUser; |
Index: trunk/extensions/LiquidThreads/pages/SpecialMergeThread.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | $threadid = $t->id(); |
63 | 63 | } |
64 | 64 | |
65 | | - $out = Xml::hidden( $field, $threadid ); |
| 65 | + $out = Html::hidden( $field, $threadid ); |
66 | 66 | $out .= LqtView::permalink( $t ); |
67 | 67 | |
68 | 68 | return $out; |
— | — | @@ -71,7 +71,6 @@ |
72 | 72 | * @see SpecialPage::getDescription |
73 | 73 | */ |
74 | 74 | function getDescription() { |
75 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
76 | 75 | return wfMsg( 'lqt_merge_thread' ); |
77 | 76 | } |
78 | 77 | |
— | — | @@ -98,7 +97,6 @@ |
99 | 98 | } |
100 | 99 | |
101 | 100 | function getSubmitText() { |
102 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
103 | 101 | return wfMsg( 'lqt-merge-submit' ); |
104 | 102 | } |
105 | 103 | } |
Index: trunk/extensions/LiquidThreads/api/ApiFeedLQTThreads.php |
— | — | @@ -109,7 +109,6 @@ |
110 | 110 | } |
111 | 111 | |
112 | 112 | public static function createFeedTitle( $params ) { |
113 | | - wfLoadExtensionMessages( 'LiquidThreads' ); |
114 | 113 | $fromPlaces = array(); |
115 | 114 | |
116 | 115 | foreach ( (array)$params['thread'] as $thread ) { |