Index: trunk/phase3/maintenance/importTextFile.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | if( is_file( $filename ) ) { |
25 | 25 | |
26 | 26 | $title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename ); |
27 | | - $title = Title::newFromUrl( $title ); |
| 27 | + $title = Title::newFromURL( $title ); |
28 | 28 | |
29 | 29 | if( is_object( $title ) ) { |
30 | 30 | |
Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | # and the variable will fail. If we can't get a decent title from the first |
172 | 172 | # attempt, url-decode and try for a second. |
173 | 173 | if( is_null( $title ) ) |
174 | | - $title = Title::newFromUrl( urldecode( $s ) ); |
| 174 | + $title = Title::newFromURL( urldecode( $s ) ); |
175 | 175 | if( !is_null( $title ) ) { |
176 | 176 | # Convert NS_MEDIA -> NS_FILE |
177 | 177 | if( $title->getNamespace() == NS_MEDIA ) { |
Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | } |
36 | 36 | $search = $wgRequest->getText( 'ilsearch' ); |
37 | 37 | if ( $search != '' && !$wgMiserMode ) { |
38 | | - $nt = Title::newFromUrl( $search ); |
| 38 | + $nt = Title::newFromURL( $search ); |
39 | 39 | if( $nt ) { |
40 | 40 | $dbr = wfGetDB( DB_SLAVE ); |
41 | 41 | $this->mQueryConds = array( 'LOWER(img_name)' . $dbr->buildLike( $dbr->anyString(), |
Index: trunk/phase3/includes/specials/SpecialNewimages.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | $where = array(); |
69 | 69 | $searchpar = array(); |
70 | 70 | if ( $wpIlMatch != '' && !$wgMiserMode) { |
71 | | - $nt = Title::newFromUrl( $wpIlMatch ); |
| 71 | + $nt = Title::newFromURL( $wpIlMatch ); |
72 | 72 | if( $nt ) { |
73 | 73 | $where[] = 'LOWER(img_name) ' . $dbr->buildLike( $dbr->anyString(), strtolower( $nt->getDBkey() ), $dbr->anyString() ); |
74 | 74 | $searchpar['wpIlMatch'] = $wpIlMatch; |
Index: trunk/extensions/SpecialFileList/SpecialFilelist.php |
— | — | @@ -108,7 +108,7 @@ |
109 | 109 | $where = array(); |
110 | 110 | $searchpar = ''; |
111 | 111 | if ( $params['match'] != '' ) { |
112 | | - $nt = Title::newFromUrl( $params['match'] ); |
| 112 | + $nt = Title::newFromURL( $params['match'] ); |
113 | 113 | if($nt ) { |
114 | 114 | $m = $this->dbr->strencode( strtolower( $nt->getDBkey() ) ); |
115 | 115 | $m = str_replace( '%', "\\%", $m ); |
Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | $this->mRevisions = (array)$wgRequest->getIntArray( 'revision' ); |
31 | 31 | |
32 | 32 | // For deleted/archived revisions |
33 | | - $this->mTarget = Title::newFromUrl( $wgRequest->getVal( 'target' ) ); |
| 33 | + $this->mTarget = Title::newFromURL( $wgRequest->getVal( 'target' ) ); |
34 | 34 | $this->mTimestamps = (array)$wgRequest->getArray( 'timestamp' ); |
35 | 35 | if( is_null( $this->mTarget ) ) { |
36 | 36 | // title and timestamps must go together |
— | — | @@ -388,7 +388,7 @@ |
389 | 389 | function showList( $page, $user, $offender ) { |
390 | 390 | global $wgOut, $wgScript, $wgTitle; |
391 | 391 | |
392 | | - $title = Title::newFromUrl( $page ); |
| 392 | + $title = Title::newFromURL( $page ); |
393 | 393 | $u = User::newFromName( $user ); |
394 | 394 | $page = $title ? $page : ''; // blank invalid titles |
395 | 395 | |
Index: trunk/extensions/WebDAV/WebDavServer.php |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | |
148 | 148 | while ( ( $result = $dbr->fetchRow( $results ) ) !== false ) { |
149 | 149 | # TODO: Should maybe not be using page_title as URL component, but it's currently what we do elsewhere |
150 | | - $title = Title::newFromUrl( $result[0] ); |
| 150 | + $title = Title::newFromURL( $result[0] ); |
151 | 151 | |
152 | 152 | $response = array(); |
153 | 153 | $response['path'] = 'webdav.php/' . $result[0]; |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | |
225 | 225 | while ( ( $result = $dbr->fetchRow( $results ) ) !== false ) { |
226 | 226 | # TODO: Should maybe not be using page_title as URL component, but it's currently what we do elsewhere |
227 | | - $title = Title::newFromUrl( $result[0] ); |
| 227 | + $title = Title::newFromURL( $result[0] ); |
228 | 228 | |
229 | 229 | $response = array(); |
230 | 230 | $response['path'] = 'deltav.php/bc/' . $revisionId . '/' . $result[0]; |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | $revisionId = array_shift( $this->pathComponents ); |
312 | 312 | |
313 | 313 | if ( $pathComponent == 'bc' ) { |
314 | | - $title = Title::newFromUrl( implode( '/', $this->pathComponents ) ); |
| 314 | + $title = Title::newFromURL( implode( '/', $this->pathComponents ) ); |
315 | 315 | if (!isset( $title )) { |
316 | 316 | $title = Title::newMainPage(); |
317 | 317 | } |
— | — | @@ -328,7 +328,7 @@ |
329 | 329 | $revisionId = $serverOptions['label']; |
330 | 330 | } |
331 | 331 | |
332 | | - $title = Title::newFromUrl( implode( '/', $this->pathComponents ) ); |
| 332 | + $title = Title::newFromURL( implode( '/', $this->pathComponents ) ); |
333 | 333 | if (!isset( $title )) { |
334 | 334 | $title = Title::newMainPage(); |
335 | 335 | } |
— | — | @@ -391,7 +391,7 @@ |
392 | 392 | return; |
393 | 393 | } |
394 | 394 | |
395 | | - $title = Title::newFromUrl( implode( '/', $this->pathComponents ) ); |
| 395 | + $title = Title::newFromURL( implode( '/', $this->pathComponents ) ); |
396 | 396 | if (!isset( $title )) { |
397 | 397 | $title = Title::newMainPage(); |
398 | 398 | } |
— | — | @@ -426,7 +426,7 @@ |
427 | 427 | return; |
428 | 428 | } |
429 | 429 | |
430 | | - $title = Title::newFromUrl( implode( '/', $this->pathComponents ) ); |
| 430 | + $title = Title::newFromURL( implode( '/', $this->pathComponents ) ); |
431 | 431 | if (!isset( $title )) { |
432 | 432 | $title = Title::newMainPage(); |
433 | 433 | } |
Index: trunk/extensions/Duplicator/Duplicator.page.php |
— | — | @@ -133,9 +133,9 @@ |
134 | 134 | private function setOptions( &$request, $title ) { |
135 | 135 | $source = $request->getText( 'source' ); |
136 | 136 | $this->source = $source ? $source : ( $title ? $title : '' ); |
137 | | - $this->sourceTitle = Title::newFromUrl( $this->source ); |
| 137 | + $this->sourceTitle = Title::newFromURL( $this->source ); |
138 | 138 | $this->dest = $request->getText( 'dest', '' ); |
139 | | - $this->destTitle = Title::newFromUrl( $this->dest ); |
| 139 | + $this->destTitle = Title::newFromURL( $this->dest ); |
140 | 140 | $this->talk = $request->getCheck( 'talk' ); |
141 | 141 | } |
142 | 142 | |
Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -321,8 +321,8 @@ |
322 | 322 | function ifexistCommon( &$parser, $frame, $titletext = '', $then = '', $else = '' ) { |
323 | 323 | global $wgContLang; |
324 | 324 | $title = Title::newFromText( $titletext ); |
325 | | - if( is_null( $title ) ) # It my be urlencoded (bug 14779) |
326 | | - $title = Title::newFromUrl( urldecode( $titletext ) ); |
| 325 | + if( is_null( $title ) ) # It may be urlencoded (bug 14779) |
| 326 | + $title = Title::newFromURL( urldecode( $titletext ) ); |
327 | 327 | |
328 | 328 | $wgContLang->findVariantLink( $titletext, $title, true ); |
329 | 329 | if ( $title ) { |
Index: trunk/extensions/Review/Review.php |
— | — | @@ -777,7 +777,7 @@ |
778 | 778 | |
779 | 779 | if ( $page_id == 0 ) { |
780 | 780 | if( $par != ''){ |
781 | | - $title = Title::newFromUrl($par); |
| 781 | + $title = Title::newFromURL($par); |
782 | 782 | $page_id = $title->getArticleID(); |
783 | 783 | } |
784 | 784 | else{ |
Index: trunk/extensions/Contributors/Contributors.page.php |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | */ |
196 | 196 | private function determineTarget( &$request, $override ) { |
197 | 197 | $target = $request->getText( 'target', $override ); |
198 | | - $this->target = Title::newFromUrl( $target ); |
| 198 | + $this->target = Title::newFromURL( $target ); |
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
Index: trunk/extensions/Nuke/SpecialNuke_body.php |
— | — | @@ -140,7 +140,7 @@ |
141 | 141 | |
142 | 142 | function doDelete( $pages, $reason ) { |
143 | 143 | foreach( $pages as $page ) { |
144 | | - $title = Title::newFromUrl( $page ); |
| 144 | + $title = Title::newFromURL( $page ); |
145 | 145 | $file = $title->getNamespace() == NS_IMAGE ? wfLocalFile( $title ) : false; |
146 | 146 | if ( $file ) { |
147 | 147 | $oldimage = null; // Must be passed by reference |
Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | */ |
94 | 94 | public function handleParams() { |
95 | 95 | # Our target page |
96 | | - $this->page = Title::newFromUrl( $this->target ); |
| 96 | + $this->page = Title::newFromURL( $this->target ); |
97 | 97 | # We need a page... |
98 | 98 | if ( is_null( $this->page ) ) { |
99 | 99 | return false; // can't continue |
Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | } |
51 | 51 | $this->setHeaders(); |
52 | 52 | # Our target page |
53 | | - $this->page = Title::newFromUrl( $wgRequest->getVal( 'target' ) ); |
| 53 | + $this->page = Title::newFromURL( $wgRequest->getVal( 'target' ) ); |
54 | 54 | if ( is_null( $this->page ) ) { |
55 | 55 | $wgOut->showErrorPage( 'notargettitle', 'notargettext' ); |
56 | 56 | return; |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | switch( $par ) |
198 | 198 | { |
199 | 199 | case "target": |
200 | | - $form->page = Title::newFromUrl( $val ); |
| 200 | + $form->page = Title::newFromURL( $val ); |
201 | 201 | if ( is_null( $form->page ) || !FlaggedRevs::inReviewNamespace( $form->page ) ) { |
202 | 202 | return '<err#>' . wfMsgExt( 'revreview-failed', 'parseinline' ); |
203 | 203 | } |
Index: trunk/extensions/FlaggedRevs/specialpages/ReviewedVersions_body.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | $this->skin = $wgUser->getSkin(); |
19 | 19 | # Our target page |
20 | 20 | $this->target = $wgRequest->getText( 'page' ); |
21 | | - $this->page = Title::newFromUrl( $this->target ); |
| 21 | + $this->page = Title::newFromURL( $this->target ); |
22 | 22 | # Revision ID |
23 | 23 | $this->oldid = $wgRequest->getVal( 'oldid' ); |
24 | 24 | $this->oldid = ( $this->oldid == 'best' ) ? 'best' : intval( $this->oldid ); |
Index: trunk/extensions/ReaderFeedback/specialpages/RatingHistory_body.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | $this->doPurge = ('purge' === $wgRequest->getVal( 'action' ) && $wgUser->isAllowed('purge')); |
34 | 34 | # Our target page |
35 | 35 | $this->target = $wgRequest->getText( 'target' ); |
36 | | - $this->page = Title::newFromUrl( $this->target ); |
| 36 | + $this->page = Title::newFromURL( $this->target ); |
37 | 37 | # We need a page... |
38 | 38 | if( is_null($this->page) ) { |
39 | 39 | $wgOut->showErrorPage( 'notargettitle', 'notargettext' ); |
Index: trunk/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | } |
43 | 43 | $this->setHeaders(); |
44 | 44 | # Our target page |
45 | | - $this->page = Title::newFromUrl( $wgRequest->getVal( 'target' ) ); |
| 45 | + $this->page = Title::newFromURL( $wgRequest->getVal( 'target' ) ); |
46 | 46 | if( is_null($this->page) ) { |
47 | 47 | $wgOut->showErrorPage('notargettitle', 'notargettext' ); |
48 | 48 | return; |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | switch( $par ) |
125 | 125 | { |
126 | 126 | case "target": |
127 | | - $form->page = Title::newFromUrl( $val ); |
| 127 | + $form->page = Title::newFromURL( $val ); |
128 | 128 | if( is_null($form->page) || !ReaderFeedback::isPageRateable( $form->page ) ) { |
129 | 129 | return '<err#>' . wfMsg('formerror'); |
130 | 130 | } |
Index: trunk/extensions/catfeed/catfeed.php |
— | — | @@ -294,7 +294,7 @@ |
295 | 295 | |
296 | 296 | # Add only valid title objects |
297 | 297 | foreach ( $iptitles as $title ) { |
298 | | - $addtitle = Title::newFromUrl($title); |
| 298 | + $addtitle = Title::newFromURL($title); |
299 | 299 | if(get_class($addtitle)=="title") { |
300 | 300 | $dbtitles[] = $addtitle; |
301 | 301 | } |