From: Alexandre Emsenhuber Date: Fri, 4 May 2012 12:32:10 +0000 (+0200) Subject: Include the namespace of the page in the "target" parameter of the form to confirm... X-Git-Tag: 1.31.0-rc.0~23692^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=c6b36a5f202f5a890b2910f6ca9ccae897078465;p=lhc%2Fweb%2Fwiklou.git Include the namespace of the page in the "target" parameter of the form to confirm display of a deleted file. 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 --- diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index b754760d84..d089c73577 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -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 ) ) ) )