dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da0059
)
Fix fixme on r71071, if passed type is not in the array returned by getExtensionTypes...
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 6 Jan 2011 02:30:02 +0000
(
02:30
+0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 6 Jan 2011 02:30:02 +0000
(
02:30
+0000)
includes/specials/SpecialVersion.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialVersion.php
b/includes/specials/SpecialVersion.php
index
14ea0e5
..
3c2f29e
100644
(file)
--- a/
includes/specials/SpecialVersion.php
+++ b/
includes/specials/SpecialVersion.php
@@
-246,7
+246,7
@@
class SpecialVersion extends SpecialPage {
*/
public static function getExtensionTypeName( $type ) {
$types = self::getExtensionTypes();
- return
$types[$type
];
+ return
isset( $types[$type] ) ? $types[$type] : $types['other'
];
}
/**