dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow gender based localisation for 'lastmodifiedatby'
[lhc/web/wiklou.git]
/
includes
/
SearchUpdate.php
diff --git
a/includes/SearchUpdate.php
b/includes/SearchUpdate.php
index
37981a6
..
087a8ba
100644
(file)
--- a/
includes/SearchUpdate.php
+++ b/
includes/SearchUpdate.php
@@
-1,12
+1,7
@@
<?php
/**
* See deferred.txt
<?php
/**
* See deferred.txt
- * @package MediaWiki
- */
-
-/**
- *
- * @package MediaWiki
+ * @ingroup Search
*/
class SearchUpdate {
*/
class SearchUpdate {
@@
-38,7
+33,7
@@
class SearchUpdate {
wfProfileIn( $fname );
$search = SearchEngine::create();
wfProfileIn( $fname );
$search = SearchEngine::create();
- $lc =
$search->
legalSearchChars() . '&#;';
+ $lc =
SearchEngine::
legalSearchChars() . '&#;';
if( $this->mText === false ) {
$search->updateTitle($this->mId,
if( $this->mText === false ) {
$search->updateTitle($this->mId,
@@
-98,18
+93,21
@@
class SearchUpdate {
# Strip wiki '' and '''
$text = preg_replace( "/''[']*/", " ", $text );
wfProfileOut( "$fname-regexps" );
# 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);
$search->update($this->mId, Title::indexTitle( $this->mNamespace, $this->mTitle ),
$text);
+
wfProfileOut( $fname );
}
}
/**
* Placeholder class
wfProfileOut( $fname );
}
}
/**
* Placeholder class
- * @
package MediaWiki
+ * @
ingroup Search
*/
class SearchUpdateMyISAM extends SearchUpdate {
# Inherits everything
}
*/
class SearchUpdateMyISAM extends SearchUpdate {
# Inherits everything
}
-
-?>