Code Duplication    Length = 5-6 lines in 2 locations

main/inc/lib/template.lib.php 2 locations

@@ 717-722 (lines=6) @@
714
715
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
716
717
        if ($this->show_learnpath) {
718
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
719
            if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/learnpath.css')) {
720
                $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/learnpath.css';
721
            }
722
        }
723
724
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
725
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
@@ 724-728 (lines=5) @@
721
            }
722
        }
723
724
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
725
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
726
        }else{
727
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
728
        }
729
730
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/default.css');
731