r107713 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107712‎ | r107713 | r107714 >
Date:08:29, 31 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this->title
Modified paths:
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/FileDeleteForm.php
@@ -101,9 +101,9 @@
102102 $wgOut->addReturnTo( $this->oldimage ? $this->title : Title::newMainPage() );
103103
104104 if ( $wgRequest->getCheck( 'wpWatch' ) && $wgUser->isLoggedIn() ) {
105 - WatchAction::doWatch( $title, $wgUser );
 105+ WatchAction::doWatch( $this->title, $wgUser );
106106 } elseif ( $this->title->userIsWatching() ) {
107 - WatchAction::doUnwatch( $title, $wgUser );
 107+ WatchAction::doUnwatch( $this->title, $wgUser );
108108 }
109109 }
110110 return;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r103202* Factorise common code in ImagePage::delete() and allow normal page deletion...ialex18:08, 15 November 2011

Status & tagging log