Allow gender based localisation for 'lastmodifiedatby'
[lhc/web/wiklou.git] / includes / SearchUpdate.php
index aae4a66..087a8ba 100644 (file)
@@ -1,10 +1,7 @@
 <?php
 /**
  * See deferred.txt
- */
-
-/**
- *
+ * @ingroup Search
  */
 class SearchUpdate {
 
@@ -96,17 +93,21 @@ class SearchUpdate {
                # Strip wiki '' and '''
                $text = preg_replace( "/''[']*/", " ", $text );
                wfProfileOut( "$fname-regexps" );
+
+               wfRunHooks( 'SearchUpdate', array( $this->mId, $this->mNamespace, $this->mTitle, &$text ) );
+
+               # Perform the actual update
                $search->update($this->mId, Title::indexTitle( $this->mNamespace, $this->mTitle ),
                                $text);
+
                wfProfileOut( $fname );
        }
 }
 
 /**
  * Placeholder class
+ * @ingroup Search
  */
 class SearchUpdateMyISAM extends SearchUpdate {
        # Inherits everything
 }
-
-?>