Fix fixme on r71071, if passed type is not in the array returned by getExtensionTypes...
authorSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 02:30:02 +0000 (02:30 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 02:30:02 +0000 (02:30 +0000)
includes/specials/SpecialVersion.php

index 14ea0e5..3c2f29e 100644 (file)
@@ -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'];
        }
        
        /**