One more password bug fix, DisableCounters flag.
[lhc/web/wiklou.git] / includes / ViewCountUpdate.php
index 676ce80..954c591 100644 (file)
@@ -12,6 +12,9 @@ class ViewCountUpdate {
 
        function doUpdate()
        {
+               global $wgDisableCounters;
+               if ( $wgDisableCounters ) { return; }
+
                $sql = "UPDATE LOW_PRIORITY cur SET cur_counter=(1+cur_counter)," .
                  "cur_timestamp=cur_timestamp WHERE cur_id={$this->mPageID}";
                $res = wfQuery( $sql, "ViewCountUpdate::doUpdate" );