Break backwards compatibility: Make image links parse for extended syntax even if...
[mediawiki.git] / includes / ViewCountUpdate.php
blobba98ba75c455448ef0b4e69b58a77c31a2e68fd1
1 <?
2 # See deferred.doc
4 class ViewCountUpdate {
6 var $mPageID;
8 function ViewCountUpdate( $pageid )
10 $this->mPageID = $pageid;
13 function doUpdate()
15 global $wgDisableCounters;
16 if ( $wgDisableCounters ) { return; }
18 $sql = "UPDATE LOW_PRIORITY cur SET cur_counter=(1+cur_counter)," .
19 "cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
20 $res = wfQuery( $sql, DB_WRITE, "ViewCountUpdate::doUpdate" );