From: Alexandre Emsenhuber Date: Sat, 31 Dec 2011 08:29:22 +0000 (+0000) Subject: Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this... X-Git-Tag: 1.31.0-rc.0~25660 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=cf0755c96832e5e592b8bc6a851db2b3640af855;p=lhc%2Fweb%2Fwiklou.git Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this->title --- diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index eedb68e0c6..9c70a6477b 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -101,9 +101,9 @@ class FileDeleteForm { $wgOut->addReturnTo( $this->oldimage ? $this->title : Title::newMainPage() ); if ( $wgRequest->getCheck( 'wpWatch' ) && $wgUser->isLoggedIn() ) { - WatchAction::doWatch( $title, $wgUser ); + WatchAction::doWatch( $this->title, $wgUser ); } elseif ( $this->title->userIsWatching() ) { - WatchAction::doUnwatch( $title, $wgUser ); + WatchAction::doUnwatch( $this->title, $wgUser ); } } return;