ViewCountUpdate is no longer used; trim it out.
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 3 Oct 2004 08:11:36 +0000 (08:11 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 3 Oct 2004 08:11:36 +0000 (08:11 +0000)
includes/UpdateClasses.php
includes/ViewCountUpdate.php [deleted file]

index 8aced79..8236b84 100644 (file)
@@ -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 (file)
index b2d9b93..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-/**
- * See deferred.doc
- * @version # $Id$
- * @package MediaWiki
- */
-
-/**
- *
- * @version # $Id$ 
- * @package MediaWiki
- */
-class ViewCountUpdate {
-
-       var $mPageID;
-
-       /**
-        *
-        */
-       function ViewCountUpdate( $pageid ) {
-               $this->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" );
-       }
-}
-?>