From 76d497b9198fc94fd8fc32f00954ad9d3215881b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sun, 29 Jul 2007 20:12:28 +0000 Subject: [PATCH] Lucky bug --- includes/ImagePage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index db2846bcef..0f829b491c 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -734,6 +734,7 @@ class ImageHistoryList { // Deletion link if( $local && $wgUser->isAllowed( 'delete' ) ) { $row .= ''; + $q = array(); $q[] = 'action=delete'; $q[] = ( $iscur ? 'image=' . $this->title->getPartialUrl() : 'oldimage=' . urlencode( $img ) ); if( !$iscur ) @@ -751,6 +752,7 @@ class ImageHistoryList { if( $iscur ) { $row .= '(' . wfMsgHtml( 'filehist-current' ) . ')'; } elseif( $local && $wgUser->isLoggedIn() && $this->title->userCan( 'edit' ) ) { + $q = array(); $q[] = 'action=revert'; $q[] = 'oldimage=' . urlencode( $img ); $q[] = 'wpEditToken=' . urlencode( $wgUser->editToken( $img ) ); -- 2.20.1