Code Duplication    Length = 3-4 lines in 2 locations

htdocs/src/OcLegacy/Cache/WebCache.php 2 locations

@@ 81-84 (lines=4) @@
78
                $opt['template']['locale'] = $sLanguage;
79
                \set_php_locale();
80
81
                if ($this->translate->t('INTERNAL_LANG', 'all', 'OcSmarty.class.php', '') !== $sLanguage) {
82
                    echo 'setlocale() failed to set language to ' . $sLanguage ."\n";
83
                    die("Is the translation of INTERNAL_LANG correct?\n");
84
                }
85
86
                // this will create the cache file
87
                $menu = new \Menu();
@@ 169-171 (lines=3) @@
166
        $opt['template']['locale'] = $sLanguage;
167
        \set_php_locale();
168
169
        if ($this->translate->t('INTERNAL_LANG', 'all', 'OcSmarty.class.php', '') != $sLanguage) {
170
            die('setlocale() failed to set language to ' . $sLanguage . ". Is the translation of INTERNAL_LANG correct?\n");
171
        }
172
173
        $preTemplate = new \OcSmarty();
174
        $preTemplate->name = $sTemplate;