Code Duplication    Length = 3-3 lines in 2 locations

htdocs/class/xoopseditor/tinymce/tinymce.php 1 location

@@ 75-77 (lines=3) @@
72
		$xoops_root_path = \XoopsBaseConfig::get('root-path');
73
		
74
        // Load default settings
75
        if ( ! ($this->setting = @include( $xoops->path( "var/configs/tinymce.php" ) ) ) ) {
76
            $this->setting = include __DIR__ . "/settings.php";
77
        }
78
79
        // get editor language (from ...)
80
        if (is_readable($xoops_root_path . $this->rootpath . '/langs/' . $this->config["language"] . '.js')) {

htdocs/class/xoopseditor/tinymce4/tinymce.php 1 location

@@ 82-84 (lines=3) @@
79
        $this->setting["theme"] = "modern";
80
81
        // Load default settings
82
        if (!($this->setting = @include($GLOBALS['xoops']->path("var/configs/tinymce.php")))) {
83
            $this->setting = include __DIR__ . "/settings.php";
84
        }
85
86
        // get editor language (from ...)
87
        if (is_readable(\XoopsBaseConfig::get('root-path') . $this->rootpath . '/langs/' . $this->config["language"] . '.js')) {