Code Duplication    Length = 5-6 lines in 2 locations

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

@@ 725-730 (lines=6) @@
722
723
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'base.css');
724
725
        if ($this->show_learnpath) {
726
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'scorm.css');
727
            if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/learnpath.css')) {
728
                $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/learnpath.css';
729
            }
730
        }
731
732
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
733
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
@@ 732-736 (lines=5) @@
729
            }
730
        }
731
732
        if (is_file(api_get_path(SYS_CSS_PATH).'themes/'.$this->theme.'/editor.css')) {
733
            $css[] = api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/editor.css';
734
        }else{
735
            $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'editor.css');
736
        }
737
738
        $css[] = api_get_cdn_path(api_get_path(WEB_CSS_PATH).'themes/'.$this->theme.'/default.css');
739