From f4ecc574f0d2b65aafde269780e2a4cdc1642424 Mon Sep 17 00:00:00 2001 From: physikerwelt Date: Sun, 26 Jan 2014 00:24:59 +0000 Subject: [PATCH] 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 --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' => "", -- 2.20.1