Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -734,6 +734,7 @@ |
735 | 735 | // Deletion link |
736 | 736 | if( $local && $wgUser->isAllowed( 'delete' ) ) { |
737 | 737 | $row .= '<td>'; |
| 738 | + $q = array(); |
738 | 739 | $q[] = 'action=delete'; |
739 | 740 | $q[] = ( $iscur ? 'image=' . $this->title->getPartialUrl() : 'oldimage=' . urlencode( $img ) ); |
740 | 741 | if( !$iscur ) |
— | — | @@ -751,6 +752,7 @@ |
752 | 753 | if( $iscur ) { |
753 | 754 | $row .= '(' . wfMsgHtml( 'filehist-current' ) . ')'; |
754 | 755 | } elseif( $local && $wgUser->isLoggedIn() && $this->title->userCan( 'edit' ) ) { |
| 756 | + $q = array(); |
755 | 757 | $q[] = 'action=revert'; |
756 | 758 | $q[] = 'oldimage=' . urlencode( $img ); |
757 | 759 | $q[] = 'wpEditToken=' . urlencode( $wgUser->editToken( $img ) ); |