r24437 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24436‎ | r24437 | r24438 >
Date:20:12, 29 July 2007
Author:robchurch
Status:old
Tags:
Comment:
Lucky bug
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -734,6 +734,7 @@
735735 // Deletion link
736736 if( $local && $wgUser->isAllowed( 'delete' ) ) {
737737 $row .= '<td>';
 738+ $q = array();
738739 $q[] = 'action=delete';
739740 $q[] = ( $iscur ? 'image=' . $this->title->getPartialUrl() : 'oldimage=' . urlencode( $img ) );
740741 if( !$iscur )
@@ -751,6 +752,7 @@
752753 if( $iscur ) {
753754 $row .= '(' . wfMsgHtml( 'filehist-current' ) . ')';
754755 } elseif( $local && $wgUser->isLoggedIn() && $this->title->userCan( 'edit' ) ) {
 756+ $q = array();
755757 $q[] = 'action=revert';
756758 $q[] = 'oldimage=' . urlencode( $img );
757759 $q[] = 'wpEditToken=' . urlencode( $wgUser->editToken( $img ) );

Follow-up revisions

RevisionCommit summaryAuthorDate
r24502Merged revisions 24415-24479 via svnmerge from...david22:31, 31 July 2007

Status & tagging log