only get the title string if action is not empty
[lhc/web/wiklou.git] / includes / ViewCountUpdate.php
index 954c591..84a0399 100644 (file)
@@ -1,4 +1,4 @@
-<?
+<?php
 # See deferred.doc
 
 class ViewCountUpdate {
@@ -17,7 +17,7 @@ class ViewCountUpdate {
 
                $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" );
+               $res = wfQuery( $sql, DB_WRITE, "ViewCountUpdate::doUpdate" );
        }
 }