dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
059e2f8
)
Make sure all RC entries for page are cleared on delete (bug 15655)
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 4 Oct 2008 22:00:44 +0000
(22:00 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 4 Oct 2008 22:00:44 +0000
(22:00 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
88a7bfa
..
399c77e
100644
(file)
--- 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__ );