Include the namespace of the page in the "target" parameter of the form to confirm...
[lhc/web/wiklou.git] / 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 ) ) )
                                        )