From: Rob Church Date: Sun, 29 Jul 2007 20:12:28 +0000 (+0000) Subject: Lucky bug X-Git-Tag: 1.31.0-rc.0~51943 X-Git-Url: http://git.cyclocoop.org/%27-%20%20.%20url_absolue%28find_in_path%28%27spip_style.css%27%29%29%20%20%20.%20url_absolue%28find_in_path%28%27prive/spip_style.css%27%29%29%20.%20%27?a=commitdiff_plain;h=76d497b9198fc94fd8fc32f00954ad9d3215881b;p=lhc%2Fweb%2Fwiklou.git Lucky bug --- 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 ) );