if it is available.
=== External library changes in 1.27 ===
+
==== Upgraded external libraries ====
* Updated oojs/oojs-ui from v0.12.12 to v0.13.3.
* Updated composer/semver from v1.0.0 to v1.2.0.
* wfMsgHtml() was removed (deprecated since 1.18).
* wfMsgWikiHtml() was removed (deprecated since 1.18).
* wfMsgExt() was removed (deprecated since 1.18).
+* Language::armourMath() was removed (deprecated since 1.22).
+* LanguageConverter::armourMath() was removed (deprecated since 1.22).
+* FakeConverter::armourMath() was removed (deprecated since 1.22).
== Compatibility ==
return $key;
}
- /** @deprecated since 1.22 is no longer used */
- function armourMath( $text ) {
- return $text;
- }
-
function validateVariant( $variant = null ) {
return $variant === $this->mLang->getCode() ? $variant : null;
}
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 true;
}
- /**
- * Armour rendered math against conversion.
- * Escape special chars in parsed math text. (in most cases are img elements)
- *
- * @param string $text Text to armour against conversion
- * @return string Armoured text where { and } have been converted to
- * { and }
- * @deprecated since 1.22 is no longer used
- */
- public function armourMath( $text ) {
- // convert '-{' and '}-' to '-{' and '}-' to prevent
- // any unwanted markup appearing in the math image tag.
- $text = strtr( $text, array( '-{' => '-{', '}-' => '}-' ) );
- return $text;
- }
-
/**
* Get the cached separator pattern for ConverterRule::parseRules()
* @return string