From: Tim Starling Date: Mon, 11 May 2009 06:38:16 +0000 (+0000) Subject: (bug 18726) Fixed double URL escaping in the links to Special:RevisionDelete in the... X-Git-Tag: 1.31.0-rc.0~41824 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f22735c9f6e2cb9f808c3d2280b770b50f3e44ea;p=lhc%2Fweb%2Fwiklou.git (bug 18726) Fixed double URL escaping in the links to Special:RevisionDelete in the file and page history lists on Special:Undelete. --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 1c574be127..3a3e5719bd 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -1166,7 +1166,7 @@ class UndeleteForm { $revdlink = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml('rev-delundel').')' ); } else { - $query = array( 'target' => $this->mTargetObj->getPrefixedUrl(), + $query = array( 'target' => $this->mTargetObj->getPrefixedDBkey(), 'artimestamp' => $ts ); $revdlink = $sk->revDeleteLink( $query, $rev->isDeleted( Revision::DELETED_RESTRICTED ) ); @@ -1208,7 +1208,7 @@ class UndeleteForm { // If revision was hidden from sysops $revdlink = Xml::tags( 'span', array( 'class'=>'mw-revdelundel-link' ), '('.wfMsgHtml('rev-delundel').')' ); } else { - $query = array( 'target' => $this->mTargetObj->getPrefixedUrl(), + $query = array( 'target' => $this->mTargetObj->getPrefixedDBkey(), 'fileid' => $row->fa_id ); $revdlink = $sk->revDeleteLink( $query, $file->isDeleted( File::DELETED_RESTRICTED ) );