We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 233bf9b commit 71a7ca1Copy full SHA for 71a7ca1
1 file changed
blocks/newbb_block.php
@@ -929,11 +929,7 @@ function b_newbb_author_edit($options)
929
function b_newbb_custom($options)
930
{
931
// 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
- }
+ xoops_loadLanguage('blocks', 'newbb');
937
938
$options = explode('|', $options);
939
$block = b_newbb_show($options);
0 commit comments