CRM-15375 - cleaning the code
authorSamuel Vanhove <samuel@symbiotic.coop>
Wed, 29 Apr 2015 23:17:51 +0000 (19:17 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Wed, 29 Apr 2015 23:17:51 +0000 (19:17 -0400)
CRM/Core/I18n/Form.php

index db1e77f5ea22843a5e51ea2af684af116d3696ff..df679e4ecf68d028ffc252e6c3760df99df0d25c 100644 (file)
@@ -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;
     }