From: Brion Vibber Date: Sun, 3 Oct 2004 08:11:36 +0000 (+0000) Subject: ViewCountUpdate is no longer used; trim it out. X-Git-Tag: 1.5.0alpha1~1671 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=bde13641b47661d6ed8aa0f92067fa6eea0cd28f;p=lhc%2Fweb%2Fwiklou.git ViewCountUpdate is no longer used; trim it out. --- diff --git a/includes/UpdateClasses.php b/includes/UpdateClasses.php index 8aced791b4..8236b849a6 100644 --- a/includes/UpdateClasses.php +++ b/includes/UpdateClasses.php @@ -9,7 +9,6 @@ * */ require_once( 'UserUpdate.php' ); -require_once( 'ViewCountUpdate.php' ); require_once( 'SiteStatsUpdate.php' ); require_once( 'LinksUpdate.php' ); require_once( 'SearchUpdate.php' ); diff --git a/includes/ViewCountUpdate.php b/includes/ViewCountUpdate.php deleted file mode 100644 index b2d9b93b19..0000000000 --- a/includes/ViewCountUpdate.php +++ /dev/null @@ -1,37 +0,0 @@ -mPageID = $pageid; - } - - /** - * - */ - function doUpdate() { - global $wgDisableCounters; - if ( $wgDisableCounters ) { return; } - $db =& wfGetDB( DB_MASTER ); - $lowpri = $db->lowPriorityOption(); - $sql = "UPDATE $lowpri cur SET cur_counter=(1+cur_counter)," . - "cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}"; - $res = $db->query( $sql, "ViewCountUpdate::doUpdate" ); - } -} -?>