From e60844786ac6934fe80b785e7bb20d462873be79 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 4 Oct 2008 22:00:44 +0000 Subject: [PATCH] Make sure all RC entries for page are cleared on delete (bug 15655) --- includes/Article.php | 5 +++++ 1 file changed, 5 insertions(+) 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__ ); -- 2.20.1