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
Make use of Title::isSpecialPage() in various places
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchEngine.php
diff --git
a/includes/search/SearchEngine.php
b/includes/search/SearchEngine.php
index
40b992d
..
260c248
100644
(file)
--- a/
includes/search/SearchEngine.php
+++ b/
includes/search/SearchEngine.php
@@
-171,7
+171,7
@@
class SearchEngine {
return null;
}
- if ( $title->
getNamespace() == NS_SPECIAL
|| $title->isExternal() || $title->exists() ) {
+ if ( $title->
isSpecialPage()
|| $title->isExternal() || $title->exists() ) {
return $title;
}