From: Samuel Vanhove Date: Wed, 29 Apr 2015 23:17:51 +0000 (-0400) Subject: CRM-15375 - cleaning the code X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=18f1f700b90c69c5cbe558b4002dfb74459507e9;p=civicrm-core.git CRM-15375 - cleaning the code --- diff --git a/CRM/Core/I18n/Form.php b/CRM/Core/I18n/Form.php index db1e77f5ea..df679e4ecf 100644 --- a/CRM/Core/I18n/Form.php +++ b/CRM/Core/I18n/Form.php @@ -83,11 +83,9 @@ class CRM_Core_I18n_Form extends CRM_Core_Form { } if ($widget['type'] == 'RichTextEditor') { $attributes['class'] .= ' collapsed'; - $this->add('wysiwyg', $name, $languages[$locale], $attributes, $required); - } - else { - $this->add($widget['type'], $name, $languages[$locale], $attributes, $required); + $widget['type'] = 'wysiwyg'; } + $this->add($widget['type'], $name, $languages[$locale], $attributes, $required); $this->_defaults[$name] = $dao->$locale; }