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:
parent
948ef48833
commit
eb433b42a0
4 changed files with 4 additions and 4 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 ) ) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue