Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -101,9 +101,9 @@ |
102 | 102 | $wgOut->addReturnTo( $this->oldimage ? $this->title : Title::newMainPage() ); |
103 | 103 | |
104 | 104 | if ( $wgRequest->getCheck( 'wpWatch' ) && $wgUser->isLoggedIn() ) { |
105 | | - WatchAction::doWatch( $title, $wgUser ); |
| 105 | + WatchAction::doWatch( $this->title, $wgUser ); |
106 | 106 | } elseif ( $this->title->userIsWatching() ) { |
107 | | - WatchAction::doUnwatch( $title, $wgUser ); |
| 107 | + WatchAction::doUnwatch( $this->title, $wgUser ); |
108 | 108 | } |
109 | 109 | } |
110 | 110 | return; |