Follow up r62436 comments.
authorPlatonides <platonides@users.mediawiki.org>
Sat, 13 Feb 2010 23:58:30 +0000 (23:58 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 13 Feb 2010 23:58:30 +0000 (23:58 +0000)
s/Title::newFromUrl/Title::newFromURL/
All these usages should be reviewed. Make it easy to grep using the canonical form.
Additionally fix the typo.

includes/parser/CoreParserFunctions.php
includes/specials/SpecialListfiles.php
includes/specials/SpecialNewimages.php
maintenance/importTextFile.php

index b133cf7..0f4d545 100644 (file)
@@ -170,7 +170,7 @@ class CoreParserFunctions {
                # and the variable will fail. If we can't get a decent title from the first
                # attempt, url-decode and try for a second.
                if( is_null( $title ) )
-                       $title = Title::newFromUrl( urldecode( $s ) );
+                       $title = Title::newFromURL( urldecode( $s ) );
                if( !is_null( $title ) ) {
                        # Convert NS_MEDIA -> NS_FILE
                        if( $title->getNamespace() == NS_MEDIA ) {
index 7880097..b933242 100644 (file)
@@ -34,7 +34,7 @@ class ImageListPager extends TablePager {
                }
                $search = $wgRequest->getText( 'ilsearch' );
                if ( $search != '' && !$wgMiserMode ) {
-                       $nt = Title::newFromUrl( $search );
+                       $nt = Title::newFromURL( $search );
                        if( $nt ) {
                                $dbr = wfGetDB( DB_SLAVE );
                                $this->mQueryConds = array( 'LOWER(img_name)' . $dbr->buildLike( $dbr->anyString(), 
index 61f5230..a39b56e 100644 (file)
@@ -67,7 +67,7 @@ function wfSpecialNewimages( $par, $specialPage ) {
        $where = array();
        $searchpar = array();
        if ( $wpIlMatch != '' && !$wgMiserMode) {
-               $nt = Title::newFromUrl( $wpIlMatch );
+               $nt = Title::newFromURL( $wpIlMatch );
                if( $nt ) {
                        $where[] = 'LOWER(img_name) ' .  $dbr->buildLike( $dbr->anyString(), strtolower( $nt->getDBkey() ), $dbr->anyString() );
                        $searchpar['wpIlMatch'] = $wpIlMatch;
index 9a6500f..955d01f 100644 (file)
@@ -23,7 +23,7 @@ if( count( $args ) < 1 || isset( $options['help'] ) ) {
        if( is_file( $filename ) ) {
 
                $title = isset( $options['title'] ) ? $options['title'] : titleFromFilename( $filename );
-               $title = Title::newFromUrl( $title );
+               $title = Title::newFromURL( $title );
 
                if( is_object( $title ) ) {