From 87894797aabfca3e6dcd227026ee066b5188c7fa Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 10 Apr 2005 18:23:11 +0000 Subject: [PATCH] more missing variable bugs --- includes/Article.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 472d46dae5..c7f9649ab0 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1093,6 +1093,7 @@ class Article { $text = $this->preSaveTransform( $text ); $dbw =& wfGetDB( DB_MASTER ); + $now = wfTimestampNow(); # Update article, but only if changed. @@ -1104,6 +1105,7 @@ class Article { } $oldtext = $this->getContent( true ); + $lastRevision = 0; if ( 0 != strcmp( $text, $oldtext ) ) { $this->mCountAdjustment = $this->isCountable( $text ) @@ -1130,7 +1132,7 @@ class Article { } else { # Update recentchanges and purge cache and whatnot $bot = (int)($wgUser->isBot() || $forceBot); - RecentChange::notifyEdit( $now, $this->mTitle, $me2, $wgUser, $summary, + RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $wgUser, $summary, $lastRevision, $this->getTimestamp(), $bot ); Article::onArticleEdit( $this->mTitle ); } @@ -1172,7 +1174,7 @@ class Article { array_push( $wgPostCommitUpdateList, $u ); } - $this->showArticle( $text, wfMsg( 'updated' ), $sectionanchor, $me2, $now, $summary, $lastRevision ); + $this->showArticle( $text, wfMsg( 'updated' ), $sectionanchor, $isminor, $now, $summary, $lastRevision ); } return $good; } -- 2.20.1