Skip to content

Commit 71a7ca1

Browse files
committed
xoops_loadLanguage
1 parent 233bf9b commit 71a7ca1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

blocks/newbb_block.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,7 @@ function b_newbb_author_edit($options)
929929
function b_newbb_custom($options)
930930
{
931931
// if no newbb module block set, we have to include the language file
932-
if (is_readable($GLOBALS['xoops']->path('modules/newbb/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.php'))) {
933-
require_once $GLOBALS['xoops']->path('modules/newbb/language/' . $GLOBALS['xoopsConfig']['language'] . '/blocks.php');
934-
} else {
935-
require_once $GLOBALS['xoops']->path('modules/newbb/language/english/blocks.php');
936-
}
932+
xoops_loadLanguage('blocks', 'newbb');
937933

938934
$options = explode('|', $options);
939935
$block = b_newbb_show($options);

0 commit comments

Comments
 (0)