typo
[lhc/web/wiklou.git] / includes / SearchUpdate.php
index 8777138..adad91b 100644 (file)
@@ -1,4 +1,5 @@
-<?
+<?php
+# $Id$
 # See deferred.doc
 
 class SearchUpdate {
@@ -24,7 +25,7 @@ class SearchUpdate {
 
        function doUpdate()
        {
-               global $wgDBminWordLen, $wgLang, $wgDisableSearchUpdate;
+               global $wgDBminWordLen, $wgLang, $wgDisableSearchUpdate, $wgIsMySQL;
 
                if( $wgDisableSearchUpdate || !$this->mId ) {
                        return false;
@@ -32,7 +33,8 @@ class SearchUpdate {
                $lc = SearchEngine::legalSearchChars() . "&#;";
                if( $this->mText == false ) {
                        # Just update the title
-                       $sql = "UPDATE LOW_PRIORITY searchindex SET si_title='" .
+                       $lowpri=$wgIsMySQL?"LOW_PRIORITY":"";
+                       $sql = "UPDATE $lowpri searchindex SET si_title='" .
                          wfStrencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ) .
                          "' WHERE si_page={$this->mId}";
                        wfQuery( $sql, DB_WRITE, "SearchUpdate::doUpdate" );