Followup r49655
authorSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 23:42:19 +0000 (23:42 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 23:42:19 +0000 (23:42 +0000)
I'd guess there's never been a Title::newFromTitle method, swapping for Title::newFromText

includes/filerepo/LocalRepo.php

index e556887..0ad1947 100644 (file)
@@ -85,7 +85,7 @@ class LocalRepo extends FSRepo {
                global $wgMemc;
 
                if( is_string( $title ) ) {
-                       $title = Title::newFromTitle( $title );
+                       $title = Title::newFromText( $title );
                }
                if( $title instanceof Title && $title->getNamespace() == NS_MEDIA ) {
                        $title = Title::makeTitle( NS_FILE, $title->getText() );