From 78260784267a1decdbf635b7b40e3fbcca8d78ad Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Sun, 7 Jan 2018 14:55:12 +0300 Subject: [PATCH] Fix not to load Xinha HTML editor, as it breaks Authentic Theme https://github.com/qooob/authentic-theme/issues/977 In the future, we should do opposite and load it only for the basic themes, leaving other themes deal with it on their own --- mailboxes/reply_mail.cgi | 42 ++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/mailboxes/reply_mail.cgi b/mailboxes/reply_mail.cgi index 4e6462f79..2d7b0ee8d 100755 --- a/mailboxes/reply_mail.cgi +++ b/mailboxes/reply_mail.cgi @@ -457,26 +457,31 @@ if ($in{'new'}) { print &ui_table_start($text{'reply_body'}, "width=100%", 2, undef, &ui_links_row(\@bodylinks)); if ($html_edit) { - # Output HTML editor textarea - print < - _editor_url = "$gconfig{'webprefix'}/$module_name/xinha/"; - _editor_lang = "en"; - - + if ($current_theme !~ /authentic-theme/) { + # Output HTML editor textarea + print < + _editor_url = "$gconfig{'webprefix'}/$module_name/xinha/"; + _editor_lang = "en"; + + - + EOF + } + else { + print ''; + } print &ui_table_row(undef, &ui_textarea("body", $quote, 40, 80, undef, 0, "style='width:99%' id=body"), 2); @@ -543,4 +548,3 @@ foreach $s (@sub) { $mail = $amail; } } -