From: Sam Reed Date: Thu, 6 Jan 2011 02:30:02 +0000 (+0000) Subject: Fix fixme on r71071, if passed type is not in the array returned by getExtensionTypes... X-Git-Tag: 1.31.0-rc.0~32777 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=b034dde60ce719745cf3e053ac69118d8e6ee9d4;hp=2da0059cc524378f2517a9ec8c34efab33de9112;p=lhc%2Fweb%2Fwiklou.git Fix fixme on r71071, if passed type is not in the array returned by getExtensionTypes(), return the other message by default --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 14ea0e56e0..3c2f29e3bb 100644 --- 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']; } /**