return (bool)$this->mConverter->validateVariant( $variant );
}
- /**
- * Put custom tags (e.g. -{ }-) around math to prevent conversion
- *
- * @param string $text
- * @return string
- * @deprecated since 1.22 is no longer used
- */
- public function armourMath( $text ) {
- return $this->mConverter->armourMath( $text );
- }
-
/**
* Perform output conversion on a string, and encode for safe HTML output.
* @param string $text Text to be converted
* @return bool|string
*/
public static function getFallbackFor( $code ) {
- if ( $code === 'en' || !Language::isValidBuiltInCode( $code ) ) {
- return false;
- } else {
- $fallbacks = self::getFallbacksFor( $code );
+ $fallbacks = self::getFallbacksFor( $code );
+ if ( $fallbacks ) {
return $fallbacks[0];
}
+ return false;
}
/**