From: Brion Vibber Date: Sun, 6 Feb 2005 11:37:16 +0000 (+0000) Subject: Use table prefix when clearing recentchanges X-Git-Tag: 1.5.0alpha1~773 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=f46435863e3ab96c026373e3f84e1d373c71159d;p=lhc%2Fweb%2Fwiklou.git Use table prefix when clearing recentchanges --- diff --git a/includes/Article.php b/includes/Article.php index bff74f09a3..e1d8adc40a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1805,7 +1805,8 @@ class Article { global $wgRCMaxAge; $dbw =& wfGetDB( DB_MASTER ); $cutoff = $dbw->timestamp( time() - $wgRCMaxAge ); - $sql = "DELETE FROM recentchanges WHERE rc_timestamp < '{$cutoff}'"; + $recentchanges = $dbw->tableName( 'recentchanges' ); + $sql = "DELETE FROM $recentchanges WHERE rc_timestamp < '{$cutoff}'"; $dbw->query( $sql ); } $id = $this->getID();