Per GrafZahl, fix for r103202: forgot to change two instances of $title to $this...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 31 Dec 2011 08:29:22 +0000 (08:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 31 Dec 2011 08:29:22 +0000 (08:29 +0000)
includes/FileDeleteForm.php

index eedb68e..9c70a64 100644 (file)
@@ -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;