Passed
Push — master ( 5eecc9...7a0709 )
by Michael
14:04
created

newbbLoadLanguage()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 5
nc 3
nop 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * NewBB,  the forum module for XOOPS project
4
 *
5
 * @copyright      XOOPS Project (https://xoops.org)
6
 * @license        GNU GPL 2.0 or later (https://www.gnu.org/licenses/gpl-2.0.html)
7
 * @author         Taiwen Jiang (phppp or D.J.) <[email protected]>
8
 * @since          4.00
9
 */
10
defined('NEWBB_FUNCTIONS_INI') || require __DIR__ . '/functions.ini.php';
11
define('NEWBB_FUNCTIONS_LANGUAGE_LOADED', true);
12
13
if (!defined('NEWBB_FUNCTIONS_LANGUAGE')) {
14
    define('NEWBB_FUNCTIONS_LANGUAGE', 1);
15
16
//    /**
17
//     * @param string $page
18
//     * @param string  $dirname
19
//     * @return bool
20
//     */
21
//    function newbbLoadLanguage(string $page, string $dirname = 'newbb')
22
//    {
23
//        $page = str_replace('..', '', $page);
24
//        if (!@require_once $GLOBALS['xoops']->path("modules/{$dirname}/{$GLOBALS['xoopsConfig']['language']}/{$language}.php")) {
25
//            if (!@require_once $GLOBALS['xoops']->path("modules/{$dirname}/language/{$language}.php")) {
26
//                return false;
27
//            }
28
//        }
29
//
30
//        return true;
31
//    }
32
}
33