Index: trunk/extensions/LiquidThreads/compat/HTMLForm.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | return Xml::tags( |
177 | 177 | 'form', |
178 | 178 | array( |
179 | | - 'action' => $this->getTitle()->getFullURL(), |
| 179 | + 'action' => $this->getTitle()->getLocalURL(), |
180 | 180 | 'method' => 'post', |
181 | 181 | ), |
182 | 182 | $html |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | |
69 | 69 | $queryString = wfArrayToCGI( $query ); |
70 | 70 | |
71 | | - return $title->getFullUrl( $queryString ); |
| 71 | + return $title->getLocalUrl( $queryString ); |
72 | 72 | } |
73 | 73 | |
74 | 74 | /** Gets an array of (title, query-parameters) for a permalink **/ |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | static function linkInContextURL( $thread, $contextType = 'page' ) { |
156 | 156 | list( $title, $query ) = self::linkInContextData( $thread, $contextType ); |
157 | 157 | |
158 | | - return $title->getFullURL( $query ); |
| 158 | + return $title->getLocalURL( $query ); |
159 | 159 | } |
160 | 160 | |
161 | 161 | static function diffQuery( $thread, $revision ) { |
— | — | @@ -265,7 +265,7 @@ |
266 | 266 | function queryReplaceLink( $repls ) { |
267 | 267 | $query = $this->getReplacedQuery( $repls ); |
268 | 268 | |
269 | | - return $this->title->getFullURL( wfArrayToCGI( $vs ) ); |
| 269 | + return $this->title->getLocalURL( wfArrayToCGI( $vs ) ); |
270 | 270 | } |
271 | 271 | |
272 | 272 | function getReplacedQuery( $replacements ) { |
— | — | @@ -296,7 +296,7 @@ |
297 | 297 | } |
298 | 298 | |
299 | 299 | function showReplyProtectedNotice( $thread ) { |
300 | | - $log_url = SpecialPage::getTitleFor( 'Log' )->getFullURL( |
| 300 | + $log_url = SpecialPage::getTitleFor( 'Log' )->getLocalURL( |
301 | 301 | "type=protect&user=&page={$thread->title()->getPrefixedURL()}" ); |
302 | 302 | $this->output->addHTML( '<p>' . wfMsg( 'lqt_protectedfromreply', |
303 | 303 | '<a href="' . $log_url . '">' . wfMsg( 'lqt_protectedfromreply_link' ) . '</a>' ) ); |
— | — | @@ -476,7 +476,7 @@ |
477 | 477 | if ( !empty($thread) ) { |
478 | 478 | $redirectTitle->setFragment( '#' . $this->anchorName( $thread ) ); |
479 | 479 | } |
480 | | - $this->output->redirect( $this->title->getFullURL() ); |
| 480 | + $this->output->redirect( $this->title->getLocalURL() ); |
481 | 481 | } |
482 | 482 | |
483 | 483 | } |
— | — | @@ -585,7 +585,7 @@ |
586 | 586 | $redirectTitle->setFragment( '#' . |
587 | 587 | $this->anchorName( $newThread ) ); |
588 | 588 | } |
589 | | - $this->output->redirect( $this->title->getFullURL() ); |
| 589 | + $this->output->redirect( $this->title->getLocalURL() ); |
590 | 590 | } |
591 | 591 | |
592 | 592 | $this->output->addHTML( '</div>' ); |
— | — | @@ -688,7 +688,7 @@ |
689 | 689 | if ( $this->output->getRedirect() != '' ) { |
690 | 690 | $redirectTitle = clone $talkpage->getTitle(); |
691 | 691 | $redirectTitle->setFragment( '#' . $this->anchorName( $thread ) ); |
692 | | - $this->output->redirect( $this->title->getFullURL() ); |
| 692 | + $this->output->redirect( $this->title->getLocalURL() ); |
693 | 693 | } |
694 | 694 | |
695 | 695 | } |
— | — | @@ -753,7 +753,7 @@ |
754 | 754 | if ( $this->output->getRedirect() != '' ) { |
755 | 755 | $redirectTitle = clone $talkpage->getTitle(); |
756 | 756 | $redirectTitle->setFragment( '#' . $this->anchorName( $thread ) ); |
757 | | - $this->output->redirect( $this->title->getFullURL() ); |
| 757 | + $this->output->redirect( $this->title->getLocalURL() ); |
758 | 758 | } |
759 | 759 | |
760 | 760 | } |
— | — | @@ -766,7 +766,7 @@ |
767 | 767 | global $wgMemc; |
768 | 768 | |
769 | 769 | if ( $wgMemc->get( $nonce_key ) ) { |
770 | | - $this->output->redirect( $this->article->getTitle()->getFullURL() ); |
| 770 | + $this->output->redirect( $this->article->getTitle()->getLocalURL() ); |
771 | 771 | return false; |
772 | 772 | } |
773 | 773 | } |
— | — | @@ -1039,7 +1039,7 @@ |
1040 | 1040 | ); |
1041 | 1041 | |
1042 | 1042 | if ( $this->user->isAllowed( 'delete' ) ) { |
1043 | | - $delete_url = $thread->title()->getFullURL( 'action=delete' ); |
| 1043 | + $delete_url = $thread->title()->getLocalURL( 'action=delete' ); |
1044 | 1044 | $deleteMsg = $thread->type() == Threads::TYPE_DELETED ? 'lqt_undelete' : 'delete'; |
1045 | 1045 | |
1046 | 1046 | $commands['delete'] = array( |
— | — | @@ -1051,7 +1051,7 @@ |
1052 | 1052 | |
1053 | 1053 | if ( !$thread->isTopmostThread() && $this->user->isAllowed( 'lqt-split' ) ) { |
1054 | 1054 | $splitUrl = SpecialPage::getTitleFor( 'SplitThread', |
1055 | | - $thread->title()->getPrefixedText() )->getFullURL(); |
| 1055 | + $thread->title()->getPrefixedText() )->getLocalURL(); |
1056 | 1056 | $commands['split'] = array( |
1057 | 1057 | 'label' => wfMsgExt( 'lqt-thread-split', 'parseinline' ), |
1058 | 1058 | 'href' => $splitUrl, |
— | — | @@ -1065,7 +1065,7 @@ |
1066 | 1066 | |
1067 | 1067 | unset( $mergeParams['title'] ); |
1068 | 1068 | |
1069 | | - $mergeUrl = $this->title->getFullURL( wfArrayToCGI( $mergeParams ) ); |
| 1069 | + $mergeUrl = $this->title->getLocalURL( wfArrayToCGI( $mergeParams ) ); |
1070 | 1070 | $label = wfMsgExt( 'lqt-thread-merge', 'parseinline' ); |
1071 | 1071 | |
1072 | 1072 | $commands['merge'] = array( |
— | — | @@ -1077,7 +1077,7 @@ |
1078 | 1078 | |
1079 | 1079 | $commands['link'] = array( |
1080 | 1080 | 'label' => wfMsgExt( 'lqt_permalink', 'parseinline' ), |
1081 | | - 'href' => $thread->title()->getFullURL(), |
| 1081 | + 'href' => $thread->title()->getLocalURL(), |
1082 | 1082 | 'enabled' => true, |
1083 | 1083 | 'showlabel' => true, |
1084 | 1084 | 'tooltip' => wfMsgExt( 'lqt_permalink', 'parseinline' ) |
— | — | @@ -1111,7 +1111,7 @@ |
1112 | 1112 | $srcThread = Threads::withId( $this->request->getVal( 'lqt_merge_from' ) ); |
1113 | 1113 | $par = $srcThread->title()->getPrefixedText(); |
1114 | 1114 | $mergeTitle = SpecialPage::getTitleFor( 'MergeThread', $par ); |
1115 | | - $mergeUrl = $mergeTitle->getFullURL( 'dest=' . $thread->id() ); |
| 1115 | + $mergeUrl = $mergeTitle->getLocalURL( 'dest=' . $thread->id() ); |
1116 | 1116 | $label = wfMsgExt( 'lqt-thread-merge-to', 'parseinline' ); |
1117 | 1117 | |
1118 | 1118 | $commands['merge-to'] = array( |
— | — | @@ -1162,7 +1162,7 @@ |
1163 | 1163 | ); |
1164 | 1164 | |
1165 | 1165 | if ( $this->user->isAllowed( 'move' ) ) { |
1166 | | - $move_href = SpecialPage::getTitleFor( 'MoveThread' )->getFullURL() |
| 1166 | + $move_href = SpecialPage::getTitleFor( 'MoveThread' )->getLocalURL() |
1167 | 1167 | . '/' . $thread->title()->getPrefixedURL(); |
1168 | 1168 | $commands['move'] = array( |
1169 | 1169 | 'label' => wfMsg( 'lqt-movethread' ), |
— | — | @@ -1172,7 +1172,7 @@ |
1173 | 1173 | } |
1174 | 1174 | |
1175 | 1175 | if ( $this->user->isAllowed( 'protect' ) ) { |
1176 | | - $protect_href = $thread->title()->getFullURL( 'action=protect' ); |
| 1176 | + $protect_href = $thread->title()->getLocalURL( 'action=protect' ); |
1177 | 1177 | |
1178 | 1178 | // Check if it's already protected |
1179 | 1179 | if ( !$thread->title()->isProtected() ) { |
Index: trunk/extensions/LiquidThreads/classes/Dispatch.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | if ( $title->getNamespace() == NS_LQT_THREAD + 1 /* talk page */ ) { |
12 | 12 | // Threads don't have talk pages; redirect to the thread page. |
13 | | - $output->redirect( $title->getSubjectPage()->getFullUrl() ); |
| 13 | + $output->redirect( $title->getSubjectPage()->getLocalUrl() ); |
14 | 14 | return false; |
15 | 15 | } |
16 | 16 | |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | $redlink = $request->getCheck( 'redlink' ) && |
19 | 19 | $request->getText( 'action' ) == 'edit'; |
20 | 20 | if ( $redlink ) { |
21 | | - $output->redirect( $title->getFullURL() ); |
| 21 | + $output->redirect( $title->getLocalURL() ); |
22 | 22 | return false; |
23 | 23 | } |
24 | 24 | |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -35,12 +35,12 @@ |
36 | 36 | // Repoint move/delete/history tabs |
37 | 37 | if ( array_key_exists( 'move', $content_actions ) && $view->thread ) { |
38 | 38 | $content_actions['move']['href'] = |
39 | | - SpecialPage::getTitleFor( 'MoveThread', $subpage )->getFullURL(); |
| 39 | + SpecialPage::getTitleFor( 'MoveThread', $subpage )->getLocalURL(); |
40 | 40 | } |
41 | 41 | |
42 | 42 | if ( array_key_exists( 'delete', $content_actions ) && $view->thread ) { |
43 | 43 | $content_actions['delete']['href'] = |
44 | | - $view->thread->title()->getFullURL( 'action=delete' ); |
| 44 | + $view->thread->title()->getLocalURL( 'action=delete' ); |
45 | 45 | } |
46 | 46 | |
47 | 47 | if ( array_key_exists( 'history', $content_actions ) ) { |
— | — | @@ -85,12 +85,12 @@ |
86 | 86 | $actions =& $links['actions']; |
87 | 87 | if ( isset( $actions['move'] ) ) { |
88 | 88 | $actions['move']['href'] = |
89 | | - SpecialPage::getTitleFor( 'MoveThread', $subpage )->getFullURL(); |
| 89 | + SpecialPage::getTitleFor( 'MoveThread', $subpage )->getLocalURL(); |
90 | 90 | } |
91 | 91 | |
92 | 92 | if ( isset( $actions['delete'] ) ) { |
93 | 93 | $actions['delete']['href'] = |
94 | | - $view->thread->title()->getFullURL( 'action=delete' ); |
| 94 | + $view->thread->title()->getLocalURL( 'action=delete' ); |
95 | 95 | } |
96 | 96 | |
97 | 97 | if ( isset( $views['history'] ) ) { |
— | — | @@ -121,7 +121,7 @@ |
122 | 122 | $tabs['article'] = |
123 | 123 | array( |
124 | 124 | 'text' => wfMsg( $articleTitle->getNamespaceKey() ), |
125 | | - 'href' => $articleTitle->getFullURL(), |
| 125 | + 'href' => $articleTitle->getLocalURL(), |
126 | 126 | 'class' => implode( ' ', $articleClasses ), |
127 | 127 | ); |
128 | 128 | |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | array( |
131 | 131 | // talkpage certainly exists since this thread is from it. |
132 | 132 | 'text' => wfMsg( 'talk' ), |
133 | | - 'href' => $talkTitle->getFullURL(), |
| 133 | + 'href' => $talkTitle->getLocalURL(), |
134 | 134 | 'class' => implode( ' ', $talkClasses ), |
135 | 135 | ); |
136 | 136 | |
Index: trunk/extensions/LiquidThreads/pages/NewUserMessagesView.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | if ( $tmp_thread ) |
91 | 91 | NewMessages::markThreadAsUnReadByUser( $tmp_thread, $this->user ); |
92 | 92 | } |
93 | | - $this->output->redirect( $this->title->getFullURL() ); |
| 93 | + $this->output->redirect( $this->title->getLocalURL() ); |
94 | 94 | } |
95 | 95 | } elseif ( $this->methodApplies( 'mark_as_read' ) ) { |
96 | 96 | $ids = explode( ',', $this->request->getVal( 'lqt_operand' ) ); |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | } |
106 | 106 | } |
107 | 107 | $query = 'lqt_method=undo_mark_as_read&lqt_operand=' . implode( ',', $ids ); |
108 | | - $this->output->redirect( $this->title->getFullURL( $query ) ); |
| 108 | + $this->output->redirect( $this->title->getLocalURL( $query ) ); |
109 | 109 | } |
110 | 110 | } elseif ( $this->methodApplies( 'undo_mark_as_read' ) ) { |
111 | 111 | $ids = explode( ',', $this->request->getVal( 'lqt_operand', '' ) ); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | # Protection against non-SkinTemplate skins |
27 | 27 | if ( isset( $content_actions['history'] ) ) { |
28 | 28 | $thisTitle = $view->article->getTitle(); |
29 | | - $history_url = $thisTitle->getFullURL( 'lqt_method=talkpage_history' ); |
| 29 | + $history_url = $thisTitle->getLocalURL( 'lqt_method=talkpage_history' ); |
30 | 30 | $content_actions['history']['href'] = $history_url; |
31 | 31 | } |
32 | 32 | } |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | |
42 | 42 | if ( isset( $links['views']['history'] ) ) { |
43 | 43 | $title = $view->article->getTitle(); |
44 | | - $history_url = $title->getFullURL( 'lqt_method=talkpage_history' ); |
| 44 | + $history_url = $title->getLocalURL( 'lqt_method=talkpage_history' ); |
45 | 45 | $links['views']['history']['href'] = $history_url; |
46 | 46 | } |
47 | 47 | } |