Tell regexp parser to use extra analysis on external link regexp;
[lhc/web/wiklou.git] / includes / SearchUpdate.php
index d1d367a..859cccc 100644 (file)
@@ -105,14 +105,19 @@ class SearchUpdate {
                # Strip wiki '' and '''
                $text = preg_replace( "/''[']*/", " ", $text );
                wfProfileOut( "$fname-regexps" );
-                $db->replace( $searchindex, array(array('si_page')),
-                  array(
-                    'si_page' => $this->mId,
-                    'si_title' => $db->strencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ),
-                    'si_text' => $db->strencode( $text )
-                  ), 'SearchUpdate::doUpdate' );
+               $db->replace( 'searchindex', array(array('si_page')),
+                       array(
+                               'si_page' => $this->mId,
+                               'si_title' => $db->strencode( Title::indexTitle( $this->mNamespace, $this->mTitle ) ),
+                               'si_text' => $db->strencode( $text )
+                       ), 'SearchUpdate::doUpdate' );
                wfProfileOut( $fname );
        }
 }
 
+/* Placeholder class */
+class SearchUpdateMyISAM extends SearchUpdate {
+       # Inherits everything
+}
+
 ?>