From 3c64de6374b4043b8ab3f1711f6d1ff0891e94f7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 17 Apr 2008 20:42:29 +0000 Subject: [PATCH] All or nothing --- includes/LogPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 34c935d99c..86c806d63b 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -77,7 +77,7 @@ class LogPage { $ok = ($dbw->affectedRows() != 0); # And update recentchanges - if( $this->updateRecentChanges ) { + if( $ok && $this->updateRecentChanges ) { # Don't add private logs to RC! if( !isset($wgLogRestrictions[$this->type]) || $wgLogRestrictions[$this->type]=='*' ) { $titleObj = SpecialPage::getTitleFor( 'Log', $this->type ); -- 2.20.1