Follow up r62436 comments.

s/Title::newFromUrl/Title::newFromURL/
All these usages should be reviewed. Make it easy to grep using the canonical form.
Additionally fix the typo.
This commit is contained in:
Platonides 2010-02-13 23:58:30 +00:00
parent 948ef48833
commit eb433b42a0
4 changed files with 4 additions and 4 deletions

View 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 ) {

View 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(),

View 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;

View 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 ) ) {