From: Aaron Schulz Date: Sat, 4 Oct 2008 22:00:44 +0000 (+0000) Subject: Make sure all RC entries for page are cleared on delete (bug 15655) X-Git-Tag: 1.31.0-rc.0~44921 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=e60844786ac6934fe80b785e7bb20d462873be79;p=lhc%2Fweb%2Fwiklou.git Make sure all RC entries for page are cleared on delete (bug 15655) --- diff --git a/includes/Article.php b/includes/Article.php index 88a7bfa33f..399c77e881 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2493,6 +2493,11 @@ class Article { # If using cleanup triggers, we can skip some manual deletes if ( !$dbw->cleanupTriggers() ) { # Clean up recentchanges entries... + $dbw->delete( 'recentchanges', + array( 'rc_type != '.RC_LOG, + 'rc_namespace' => $this->mTitle->getNamespace(), + 'rc_title' => $this->mTitle->getDBKey() ), + __METHOD__ ); $dbw->delete( 'recentchanges', array( 'rc_type != '.RC_LOG, 'rc_cur_id' => $id ), __METHOD__ );