diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2004-06-13 01:15:16 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2004-06-13 01:15:16 +0000 |
commit | 1d6017272668b85e6944039381854a3851b6ae01 (patch) | |
tree | 04f07e820d7f8ee252fbe5c1b1f8f0b84a3ab95b /includes/ViewCountUpdate.php | |
parent | aeac600626ab9b92f8c09c919ba05f1e62d19cd8 (diff) | |
download | mediawikicore-1d6017272668b85e6944039381854a3851b6ae01.tar.gz mediawikicore-1d6017272668b85e6944039381854a3851b6ae01.zip |
Merge 1.3.0beta3 from HEAD
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4051
Diffstat (limited to 'includes/ViewCountUpdate.php')
-rw-r--r-- | includes/ViewCountUpdate.php | 9 |
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" ); } } - ?> |