From cf0755c96832e5e592b8bc6a851db2b3640af855 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 31 Dec 2011 08:29:22 +0000 Subject: [PATCH] Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this->title --- includes/FileDeleteForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1