All or nothing
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 17 Apr 2008 20:42:29 +0000 (20:42 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 17 Apr 2008 20:42:29 +0000 (20:42 +0000)
includes/LogPage.php

index 34c935d..86c806d 100644 (file)
@@ -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 );