Code Duplication    Length = 4-4 lines in 2 locations

class/Common/Breadcrumb.php 1 location

@@ 64-67 (lines=4) @@
61
     */
62
    public function render()
63
    {
64
        if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) {
65
            require_once $GLOBALS['xoops']->path('class/theme.php');
66
            $GLOBALS['xoTheme'] =  new \Xos_opal_Theme();
67
        }
68
69
        require_once $GLOBALS['xoops']->path('class/template.php');
70
        $breadcrumbTpl = new \XoopsTpl();

header.php 1 location

@@ 47-50 (lines=4) @@
44
//------------------------------------------------------
45
// Tooltips include
46
/** @var xos_opal_Theme $xoTheme */
47
if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) {
48
    include_once $GLOBALS['xoops']->path("/class/theme.php");
49
    $GLOBALS['xoTheme'] =  new \Xos_opal_Theme();
50
}
51
52
$GLOBALS['xoTheme']->addScript('modules/extcal/include/ToolTips.js');
53
$GLOBALS['xoTheme']->addStylesheet('modules/extcal/assets/css/infobulle.css');