Fix PHP fatal error in /usr/local/apache/common-local/php-1.5/includes/FileDeleteFor...
authorRaimond Spekking <raymond@users.mediawiki.org>
Thu, 1 Jan 2009 13:15:29 +0000 (13:15 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Thu, 1 Jan 2009 13:15:29 +0000 (13:15 +0000)
Regression from r45159

includes/FileDeleteForm.php

index b7c544c..66086b0 100644 (file)
@@ -113,7 +113,7 @@ class FileDeleteForm {
                                                global $wgRequest;
                                                if( $wgRequest->getCheck( 'wpWatch' ) ) {
                                                        $article->doWatch();
-                                               } elseif( $this->mTitle->userIsWatching() ) {
+                                               } elseif( $title->userIsWatching() ) {
                                                        $article->doUnwatch();
                                                }
                                                wfRunHooks('ArticleDeleteComplete', array(&$article, &$wgUser, $reason, $id));