Attempt to fix External Edit for files.
authorgicode <gicode@localhost>
Thu, 1 Dec 2011 19:11:54 +0000 (19:11 +0000)
committergicode <gicode@localhost>
Thu, 1 Dec 2011 19:11:54 +0000 (19:11 +0000)
I would feel better if I knew how to test this all the way through...

Follow-up r102521.

includes/ExternalEdit.php

index b225001..9bdbd6c 100644 (file)
@@ -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()