mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 09:20:42 +00:00
Merge "Whitespace fixes"
This commit is contained in:
commit
e5574189c4
|
@ -13,8 +13,7 @@
|
||||||
* different technologies. These static methods create a new instance of the
|
* different technologies. These static methods create a new instance of the
|
||||||
* extending classes and render the math tags based on the mode setting of the user.
|
* extending classes and render the math tags based on the mode setting of the user.
|
||||||
* Furthermore this class handles the caching of the rendered output and provides
|
* Furthermore this class handles the caching of the rendered output and provides
|
||||||
* debug information,
|
* debug information, if run in mathdebug mode.
|
||||||
* if run in mathdebug mode.
|
|
||||||
*
|
*
|
||||||
* @author Tomasz Wegrzanowski
|
* @author Tomasz Wegrzanowski
|
||||||
* @author Brion Vibber
|
* @author Brion Vibber
|
||||||
|
@ -119,7 +118,7 @@ abstract class MathRenderer {
|
||||||
* @param int $mode constant indicating rendering mode
|
* @param int $mode constant indicating rendering mode
|
||||||
* @return MathRenderer appropriate renderer for mode
|
* @return MathRenderer appropriate renderer for mode
|
||||||
*/
|
*/
|
||||||
public static function getRenderer( $tex, $params = array(), $mode = MW_MATH_PNG ) {
|
public static function getRenderer( $tex, $params = array(), $mode = MW_MATH_PNG ) {
|
||||||
global $wgDefaultUserOptions, $wgMathValidModes, $wgMathEnableExperimentalInputFormats;
|
global $wgDefaultUserOptions, $wgMathValidModes, $wgMathEnableExperimentalInputFormats;
|
||||||
$mathStyle = null;
|
$mathStyle = null;
|
||||||
if ( isset( $params['display'] ) ) {
|
if ( isset( $params['display'] ) ) {
|
||||||
|
@ -149,7 +148,7 @@ abstract class MathRenderer {
|
||||||
if ( !in_array( $mode, $wgMathValidModes ) ) {
|
if ( !in_array( $mode, $wgMathValidModes ) ) {
|
||||||
$mode = $wgDefaultUserOptions['math'];
|
$mode = $wgDefaultUserOptions['math'];
|
||||||
}
|
}
|
||||||
if ( $wgMathEnableExperimentalInputFormats === true && $mode == MW_MATH_MATHML && isset( $params['type'] ) ) {
|
if ( $wgMathEnableExperimentalInputFormats === true && $mode == MW_MATH_MATHML && isset( $params['type'] ) ) {
|
||||||
// Support of MathML input (experimental)
|
// Support of MathML input (experimental)
|
||||||
// Currently support for mode MW_MATH_MATHML only
|
// Currently support for mode MW_MATH_MATHML only
|
||||||
if( !in_array( $params['type'], array( 'pmml', 'ascii' ) ) ) {
|
if( !in_array( $params['type'], array( 'pmml', 'ascii' ) ) ) {
|
||||||
|
|
Loading…
Reference in a new issue