aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ViewCountUpdate.php
diff options
context:
space:
mode:
authornobody <nobody@localhost>2004-06-27 00:05:32 +0000
committernobody <nobody@localhost>2004-06-27 00:05:32 +0000
commit0c1d741ff4792d486258b390cf50cf3f9e229511 (patch)
tree55961c46b433ade0739763bee2ba3c4843d13751 /includes/ViewCountUpdate.php
parentd5c8171a3157337557bc54ecb730d7dd35778ca3 (diff)
parent1aaed5fd7c7f4d7ea7abbfc7915bab5954d60a30 (diff)
downloadmediawikicore-1.3.0beta4a.tar.gz
mediawikicore-1.3.0beta4a.zip
This commit was manufactured by cvs2svn to create tag1.3.0beta4a
'REL1_3_0beta4a'.
Diffstat (limited to 'includes/ViewCountUpdate.php')
-rw-r--r--includes/ViewCountUpdate.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/ViewCountUpdate.php b/includes/ViewCountUpdate.php
index 84a03991f8ce..16976f11b0f2 100644
--- a/includes/ViewCountUpdate.php
+++ b/includes/ViewCountUpdate.php
@@ -1,6 +1,6 @@
<?php
+# $Id$
# See deferred.doc
-
class ViewCountUpdate {
var $mPageID;
@@ -12,13 +12,12 @@ class ViewCountUpdate {
function doUpdate()
{
- global $wgDisableCounters;
+ global $wgDisableCounters, $wgIsMySQL;
if ( $wgDisableCounters ) { return; }
-
- $sql = "UPDATE LOW_PRIORITY cur SET cur_counter=(1+cur_counter)," .
+ $lowpri=$wgIsMySQL?"LOW_PRIORITY":"";
+ $sql = "UPDATE $lowpri cur SET cur_counter=(1+cur_counter)," .
"cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
$res = wfQuery( $sql, DB_WRITE, "ViewCountUpdate::doUpdate" );
}
}
-
?>