Code Duplication    Length = 7-7 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

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