From: physikerwelt Date: Sun, 26 Jan 2014 00:24:59 +0000 (+0000) Subject: Remove $wgUseTeX for checking if editing tools should be shown X-Git-Tag: 1.31.0-rc.0~17099^2 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=f4ecc574f0d2b65aafde269780e2a4cdc1642424;p=lhc%2Fweb%2Fwiklou.git Remove $wgUseTeX for checking if editing tools should be shown The EditPage toolbar used the global $wgUseTeX to determine, if the icon for inserting math should be shown. Now we simply check if the class MathRenderer exits. Change-Id: I0a0203f2d8c295bfc56694eb08c9986420c086cf --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 7115eabdd0..a71871de40 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3319,7 +3319,7 @@ HTML */ static function getEditToolbar() { global $wgStylePath, $wgContLang, $wgLang, $wgOut; - global $wgUseTeX, $wgEnableUploads, $wgForeignFileRepos; + global $wgEnableUploads, $wgForeignFileRepos; $imagesAvailable = $wgEnableUploads || count( $wgForeignFileRepos ); @@ -3400,7 +3400,7 @@ HTML 'tip' => wfMessage( 'media_tip' )->text(), 'key' => 'M' ) : false, - $wgUseTeX ? array( + class_exists( 'MathRenderer' ) ? array( 'image' => $wgLang->getImageFile( 'button-math' ), 'id' => 'mw-editbutton-math', 'open' => "",