Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -161,7 +161,13 @@ |
162 | 162 | |
163 | 163 | return $title->getFullURL( $query ); |
164 | 164 | } |
| 165 | + |
| 166 | + static function linkInContextCanonicalURL( $thread, $contextType = 'page' ) { |
| 167 | + list( $title, $query ) = self::linkInContextData( $thread, $contextType ); |
165 | 168 | |
| 169 | + return $title->getCanonicalURL( $query ); |
| 170 | + } |
| 171 | + |
166 | 172 | static function diffQuery( $thread, $revision ) { |
167 | 173 | $changed_thread = $revision->getChangeObject(); |
168 | 174 | $curr_rev_id = $changed_thread->rootRevision(); |
Index: trunk/extensions/LiquidThreads/classes/NewMessagesController.php |
— | — | @@ -285,7 +285,7 @@ |
286 | 286 | global $wgPasswordSender; |
287 | 287 | $link_title = clone $t->getTitle(); |
288 | 288 | $link_title->setFragment( '#' . $t->getAnchorName() ); |
289 | | - $permalink = LqtView::linkInContextFullURL( $t ); |
| 289 | + $permalink = LqtView::linkInContextCanonicalURL( $t ); |
290 | 290 | $talkPage = $t->getTitle()->getPrefixedText(); |
291 | 291 | $from = new MailAddress( $wgPasswordSender, 'WikiAdmin' ); |
292 | 292 | $threadSubject = $t->subject(); |
Index: trunk/extensions/OAI/OAIRepo_body.php |
— | — | @@ -550,7 +550,7 @@ |
551 | 551 | |
552 | 552 | function baseUrl() { |
553 | 553 | $title =& SpecialPage::getTitleFor( 'OAIRepository' ); |
554 | | - return $title->getFullUrl(); |
| 554 | + return $title->getCanonicalUrl(); |
555 | 555 | } |
556 | 556 | |
557 | 557 | function earliestDatestamp() { |
— | — | @@ -839,7 +839,7 @@ |
840 | 840 | oaiTag( 'dc:language', array(), $wgContLanguageCode ) . "\n" . |
841 | 841 | oaiTag( 'dc:type', array(), 'Text' ) . "\n" . |
842 | 842 | oaiTag( 'dc:format', array(), $wgMimeType ) . "\n" . |
843 | | - oaiTag( 'dc:identifier', array(), $title->getFullUrl() ) . "\n" . |
| 843 | + oaiTag( 'dc:identifier', array(), $title->getCanonicalUrl() ) . "\n" . |
844 | 844 | oaiTag( 'dc:contributor', array(), $this->_row->rev_user_text ) . "\n" . |
845 | 845 | oaiTag( 'dc:date', array(), oaiDatestamp( $this->getDatestamp() ) ) . "\n" . |
846 | 846 | "</oai_dc:dc>\n"; |
Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | if( $cachedText ) { |
76 | 76 | $text = $cachedText; |
77 | 77 | } else { |
78 | | - $url = $nt->getFullURL(); |
| 78 | + $url = $nt->getCanonicalURL(); |
79 | 79 | $myURL = $out->getTitle()->getLocalURL(); |
80 | 80 | $languageName = $wgContLang->getLanguageName( $iw ); |
81 | 81 | $myLanguage = $wgLang->getLanguageName( $wgContLang->getCode() ); |
Index: trunk/extensions/SecurePoll/includes/entities/Election.php |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | Xml::element( 'auth', array(), 'local' ) . "\n" . |
381 | 381 | Xml::element( 'property', |
382 | 382 | array( 'name' => 'jump-url' ), |
383 | | - $this->context->getSpecialTitle()->getFullURL() |
| 383 | + $this->context->getSpecialTitle()->getCanonicalUrl() |
384 | 384 | ) . "\n" . |
385 | 385 | Xml::element( 'property', |
386 | 386 | array( 'name' => 'jump-id' ), |
Index: trunk/extensions/SecurePoll/includes/user/Auth.php |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | 'name' => $user->getName(), |
207 | 207 | 'type' => 'local', |
208 | 208 | 'domain' => preg_replace( '!.*/(.*)$!', '$1', $wgServer ), |
209 | | - 'url' => $user->getUserPage()->getFullURL(), |
| 209 | + 'url' => $user->getUserPage()->getCanonicalURL(), |
210 | 210 | 'properties' => array( |
211 | 211 | 'wiki' => wfWikiID(), |
212 | 212 | 'blocked' => $user->isBlocked(), |
Index: trunk/extensions/EmailCapture/api/ApiEmailCapture.php |
— | — | @@ -33,8 +33,8 @@ |
34 | 34 | // Send auto-response |
35 | 35 | global $wgEmailCaptureSendAutoResponse, $wgEmailCaptureAutoResponse; |
36 | 36 | $title = SpecialPage::getTitleFor( 'EmailCapture' ); |
37 | | - $link = $title->getFullURL(); |
38 | | - $fullLink = $title->getFullURL( array( 'verify' => $code ) ); |
| 37 | + $link = $title->getCanonicalURL(); |
| 38 | + $fullLink = $title->getCanonicalURL( array( 'verify' => $code ) ); |
39 | 39 | if ( $wgEmailCaptureSendAutoResponse ) { |
40 | 40 | UserMailer::send( |
41 | 41 | new MailAddress( $params['email'] ), |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -1644,12 +1644,12 @@ |
1645 | 1645 | static function modifyActionText( $page, $type, $title, $sk, $args ) { |
1646 | 1646 | list( $history_id, $filter_id ) = $args; |
1647 | 1647 | |
1648 | | - $filter_link = $sk ? $sk->link( $title ) : $title->getFullURL(); |
| 1648 | + $filter_link = $sk ? $sk->link( $title ) : $title->getCanonicalURL(); |
1649 | 1649 | |
1650 | 1650 | $details_title = SpecialPage::getTitleFor( 'AbuseFilter', "history/$filter_id/diff/prev/$history_id" ); |
1651 | 1651 | $details_text = wfMsgExt( 'abusefilter-log-detailslink', 'parseinline' ); |
1652 | 1652 | $details_link = |
1653 | | - $sk ? $sk->link( $details_title, $details_text ) : $details_title->getFullURL(); |
| 1653 | + $sk ? $sk->link( $details_title, $details_text ) : $details_title->getCanonicalURL(); |
1654 | 1654 | |
1655 | 1655 | return wfMsgExt( 'abusefilter-log-entry-modify', |
1656 | 1656 | array( 'parseinline', 'replaceafter' ), array( $filter_link, $details_link ) ); |
Index: trunk/extensions/ActiveAbstract/AbstractFilter.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | |
57 | 57 | $xml = "<doc>\n"; |
58 | 58 | $xml .= Xml::element( 'title', null, $this->_variant( $title ) ) . "\n"; |
59 | | - $xml .= Xml::element( 'url', null, $this->title->getFullUrl() ) . "\n"; |
| 59 | + $xml .= Xml::element( 'url', null, $this->title->getCanonicalUrl() ) . "\n"; |
60 | 60 | |
61 | 61 | // add abstract and links when we have revision data... |
62 | 62 | $this->revision = null; |
— | — | @@ -216,7 +216,7 @@ |
217 | 217 | $stripped = $this->_stripMarkup( $inside ); // strip internal markup and <h[1-6]> |
218 | 218 | $header = UtfNormal::cleanUp( $stripped ); |
219 | 219 | $anchor = EditPage::sectionAnchor( $header ); |
220 | | - $url = $this->title->getFullUrl() . $anchor; |
| 220 | + $url = $this->title->getCanonicalUrl() . $anchor; |
221 | 221 | $headers[$header] = $url; |
222 | 222 | } |
223 | 223 | return $headers; |
— | — | @@ -239,7 +239,7 @@ |
240 | 240 | $links = array(); |
241 | 241 | while ( $row = $dbr->fetchObject( $result ) ) { |
242 | 242 | $category = Title::makeTitle( NS_CATEGORY, $row->cl_to ); |
243 | | - $links[$category->getText()] = $category->getFullUrl(); |
| 243 | + $links[$category->getText()] = $category->getCanonicalUrl(); |
244 | 244 | } |
245 | 245 | $dbr->freeResult( $result ); |
246 | 246 | |
Index: trunk/extensions/ActiveAbstract/GoogleCoopFilter.php |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | $xml .= ' ' . Xml::element( 'Output', array( 'name' => 'title' ), |
74 | 74 | $wgSitename . ':' . $this->title->getPrefixedText() ) . "\n"; |
75 | 75 | $xml .= ' ' . Xml::element( 'Output', array( 'name' => 'more_url' ), |
76 | | - $this->title->getFullUrl() ) . "\n"; |
| 76 | + $this->title->getCanonicalUrl() ) . "\n"; |
77 | 77 | |
78 | 78 | // add abstract and links when we have revision data... |
79 | 79 | $this->revision = null; |