Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/userportal.lib.php 1 location

@@ 589-591 (lines=3) @@
586
                // TODO: deprecate this useless feature - this includes removing system variable
587
                if (empty($htmlTitre)) {
588
                    $htmlTitre = '<p>';
589
                    if (api_get_setting('show_back_link_on_top_of_tree') == 'true') {
590
                        $htmlTitre .= '<a href="'.api_get_self().'">&lt;&lt; '.get_lang('BackToHomePage').'</a>';
591
                    }
592
                    $htmlTitre .= "</p>";
593
                }
594
            }

src/Chamilo/CoreBundle/Framework/PageController.php 1 location

@@ 707-709 (lines=3) @@
704
                    } // Else don't set thereIsSubCat to true to avoid printing things if not requested.
705
                } else {
706
                    $htmlTitre = '<p>';
707
                    if (api_get_setting('show_back_link_on_top_of_tree') == 'true') {
708
                        $htmlTitre .= '<a href="'.api_get_self().'">&lt;&lt; '.get_lang('BackToHomePage').'</a>';
709
                    }
710
                    if (!is_null($catLine['parent_id']) ||
711
                        (api_get_setting('show_back_link_on_top_of_tree') != 'true' &&
712
                        !is_null($catLine['code']))