Code Duplication    Length = 7-7 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 6941-6947 (lines=7) @@
6938
        $arrLP = isset($this->arrMenu) ? $this->arrMenu : null;
6939
        unset($this->arrMenu);
6940
6941
        if ($action == 'add') {
6942
            $legend = get_lang('CreateTheForum');
6943
        } elseif ($action == 'move') {
6944
            $legend = get_lang('MoveTheCurrentForum');
6945
        } else {
6946
            $legend = get_lang('EditCurrentForum');
6947
        }
6948
6949
        $form = new FormValidator('forum_form', 'POST', api_get_self() . '?' .$_SERVER['QUERY_STRING']);
6950
        $defaults = [];
@@ 7144-7150 (lines=7) @@
7141
        $form = new FormValidator('thread_form', 'POST', api_get_self() . '?' .$_SERVER['QUERY_STRING']);
7142
        $defaults = [];
7143
7144
        if ($action == 'add') {
7145
            $legend = get_lang('CreateTheForum');
7146
        } elseif ($action == 'move') {
7147
            $legend = get_lang('MoveTheCurrentForum');
7148
        } else {
7149
            $legend = get_lang('EditCurrentForum');
7150
        }
7151
7152
        $form->addHeader($legend);
7153
        $selectParent = $form->addSelect(