From cfc706242f343dda70bd202e51534da4ce109008 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 18 Feb 2011 23:42:19 +0000 Subject: [PATCH] Followup r49655 I'd guess there's never been a Title::newFromTitle method, swapping for Title::newFromText --- includes/filerepo/LocalRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index e556887009..0ad1947d51 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -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() ); -- 2.20.1