From db0cac00dad4c63cd9ec09e826a57fbb9e47e601 Mon Sep 17 00:00:00 2001 From: gicode Date: Thu, 1 Dec 2011 19:11:54 +0000 Subject: [PATCH] Attempt to fix External Edit for files. I would feel better if I knew how to test this all the way through... Follow-up r102521. --- includes/ExternalEdit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index b225001997..9bdbd6cbf3 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -80,7 +80,7 @@ class ExternalEdit extends ContextSource { } else { if ( $this->getRequest()->getVal( 'mode' ) == 'file' ) { $type = "Edit file"; - $image = wfLocalFile( $this->title ); + $image = wfLocalFile( $this->getTitle() ); $urls = array( 'File' => array( 'Extension' => $image->getExtension(), 'URL' => $image->getCanonicalURL() -- 2.20.1