Code Duplication    Length = 13-13 lines in 2 locations

htdocs/modules/wflinks/admin/main.php 1 location

@@ 142-154 (lines=13) @@
139
//    $editor = wfl_getWysiwygForm( _AM_WFL_LINK_DESCRIPTION, 'descriptionb', $descriptionb, 15, 60 );
140
//    $sform -> addElement($editor, false);
141
    $optionsTrayNote = new XoopsFormElementTray(_AM_WFL_LINK_DESCRIPTION, '<br />');
142
    if (class_exists('XoopsFormEditor')) {
143
        $options['name']   = 'descriptionb';
144
        $options['value']  = $descriptionb;
145
        $options['rows']   = 5;
146
        $options['cols']   = '100%';
147
        $options['width']  = '100%';
148
        $options['height'] = '200px';
149
        $descriptionb      = new XoopsFormEditor('', $xoopsModuleConfig['form_options'], $options, $nohtml = FALSE, $onfailure = 'textarea');
150
        $optionsTrayNote->addElement($descriptionb);
151
    } else {
152
        $descriptionb = new XoopsFormDhtmlTextArea('', 'descriptionb', $item->getVar('descriptionb', 'e'), '100%', '100%');
153
        $optionsTrayNote->addElement($descriptionb);
154
    }
155
156
    $sform->addElement($optionsTrayNote, FALSE);
157

htdocs/modules/wflinks/submit.php 1 location

@@ 280-292 (lines=13) @@
277
//    $sform -> addElement($editor,false);
278
279
$optionsTrayNote = new XoopsFormElementTray(_MD_WFL_DESCRIPTIONC, '<br />');
280
        if (class_exists('XoopsFormEditor')) {
281
            $options['name']   = 'descriptionb';
282
            $options['value']  = $descriptionb;
283
            $options['rows']   = 5;
284
            $options['cols']   = '100%';
285
            $options['width']  = '100%';
286
            $options['height'] = '200px';
287
            $editor            = new XoopsFormEditor('', $xoopsModuleConfig['form_optionsuser'], $options, $nohtml = FALSE, $onfailure = 'textarea');
288
            $optionsTrayNote->addElement($editor);
289
        } else {
290
            $editor = new XoopsFormDhtmlTextArea('', 'descriptionb', $item->getVar('descriptionb', 'e'), '100%', '100%');
291
            $optionsTrayNote->addElement($editor);
292
        }
293
294
        $sform->addElement($optionsTrayNote, FALSE);
295