Physikerwelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/109493
Change subject: Remove $wgUseTeX for checking if editing tools should be shown ...................................................................... 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 --- M includes/EditPage.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/93/109493/1 diff --git a/includes/EditPage.php b/includes/EditPage.php index 7115eab..a71871d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3319,7 +3319,7 @@ */ static function getEditToolbar() { global $wgStylePath, $wgContLang, $wgLang, $wgOut; - global $wgUseTeX, $wgEnableUploads, $wgForeignFileRepos; + global $wgEnableUploads, $wgForeignFileRepos; $imagesAvailable = $wgEnableUploads || count( $wgForeignFileRepos ); @@ -3400,7 +3400,7 @@ 'tip' => wfMessage( 'media_tip' )->text(), 'key' => 'M' ) : false, - $wgUseTeX ? array( + class_exists( 'MathRenderer' ) ? array( 'image' => $wgLang->getImageFile( 'button-math' ), 'id' => 'mw-editbutton-math', 'open' => "<math>", -- To view, visit https://gerrit.wikimedia.org/r/109493 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0a0203f2d8c295bfc56694eb08c9986420c086cf Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Physikerwelt <w...@physikerwelt.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits