Code Duplication    Length = 4-6 lines in 3 locations

htdocs/mydetails.php 1 location

@@ 189-192 (lines=4) @@
186
                $descMode = 3;
187
            }
188
        }
189
        if ($descMode == 3) {
190
            $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js');
191
            $tpl->add_header_javascript(
192
                'resource2/tinymce/config/user.js.php?lang=' . strtolower($opt['template']['locale'])
193
            );
194
        }
195
        $tpl->add_header_javascript(editorJsPath());

htdocs/log.php 1 location

@@ 194-199 (lines=6) @@
191
    }
192
193
    // add javascript-header if editor
194
    if ($descMode == 3) {
195
        $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js');
196
        $tpl->add_header_javascript(
197
            'resource2/tinymce/config/log.js.php?lang=' . strtolower($opt['template']['locale'])
198
        );
199
    }
200
    $tpl->add_header_javascript(editorJsPath());
201
202
    // check and prepare log text

htdocs/mylists.php 1 location

@@ 171-174 (lines=4) @@
168
}
169
170
// prepare editor and editing
171
if ($descMode == 3) {
172
    $tpl->add_header_javascript('resource2/tinymce/tiny_mce_gzip.js');
173
    $tpl->add_header_javascript('resource2/tinymce/config/list.js.php?lang=' . strtolower($opt['template']['locale']));
174
}
175
$tpl->add_header_javascript(editorJsPath());
176
if ($edit_list) {
177
    $tpl->assign('edit_list', true);