Include the namespace of the page in the "target" parameter of the form to confirm...
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 4 May 2012 12:32:10 +0000 (14:32 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 8 May 2012 12:06:12 +0000 (14:06 +0200)
Currently the name of the file is sent without the "File:" prefix making MediaWiki think we want to display a page in the main namespace.

Change-Id: I5a42764c8e9289d13b95a1989be63fdf357bc6ef

includes/specials/SpecialRevisiondelete.php

index b754760..d089c73 100644 (file)
@@ -295,7 +295,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
                                Xml::openElement( 'form', array(
                                        'method' => 'POST',
                                        'action' => $this->getTitle()->getLocalUrl(
-                                               'target=' . urlencode( $oimage->getName() ) .
+                                               'target=' . urlencode( $this->targetObj->getPrefixedDBkey() ) .
                                                '&file=' . urlencode( $archiveName ) .
                                                '&token=' . urlencode( $user->getEditToken( $archiveName ) ) )
                                        )