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
Merge "Correct $specialPageAliases for sa.wiki"
[lhc/web/wiklou.git]
/
includes
/
MWNamespace.php
diff --git
a/includes/MWNamespace.php
b/includes/MWNamespace.php
index
bfbd557
..
73fdd82
100644
(file)
--- a/
includes/MWNamespace.php
+++ b/
includes/MWNamespace.php
@@
-254,11
+254,7
@@
class MWNamespace {
*/
public static function getCanonicalName( $index ) {
$nslist = self::getCanonicalNamespaces();
- if ( isset( $nslist[$index] ) ) {
- return $nslist[$index];
- } else {
- return false;
- }
+ return $nslist[$index] ?? false;
}
/**