Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | function newbbLoadLanguage($page, $dirname = 'newbb') |
||
26 | { |
||
27 | $page = str_replace('..', '', $page); |
||
|
|||
28 | if (!@require_once $GLOBALS['xoops']->path("modules/{$dirname}/{$GLOBALS['xoopsConfig']['language']}/{$language}.php")) { |
||
29 | if (!@require_once $GLOBALS['xoops']->path("modules/{$dirname}/language/{$language}.php")) { |
||
30 | return false; |
||
31 | } |
||
32 | } |
||
33 | |||
34 | return true; |
||
35 | } |
||
37 |