diff --git a/.gitattributes b/.gitattributes index bdb0cabc..0b7c43d4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,13 +5,13 @@ *.cs diff=csharp # Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain +*.doc diff=astextplain +*.DOC diff=astextplain *.docx diff=astextplain *.DOCX diff=astextplain *.dot diff=astextplain *.DOT diff=astextplain *.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 9ea8109e..22ad2693 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -9,14 +9,19 @@ build: # to install a specific release tag or branch instead. - git clone --depth=1 https://github.com/XOOPS/XoopsCore25 - git clone --depth=1 https://github.com/mambax7/tag + - git clone --depth=1 https://github.com/mambax7/xoopspoll + - git clone --depth=1 https://github.com/mambax7/xlanguage project_setup: override: true tests: override: - - php-scrutinizer-run --enable-security-analysis + - php-scrutinizer-run --enable-security-analysis + environment: + php: + version: "7.2" filter: dependency_paths: - - XoopsCore25/* - - tag/* - - Xoopspoll - + - XoopsCore25/* + - tag/* + - xoopspoll + - xlanguage diff --git a/EXTRA/index.html b/EXTRA/index.html deleted file mode 100644 index 74b6f45c..00000000 --- a/EXTRA/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/EXTRA/index.php b/EXTRA/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/index.php @@ -0,0 +1,2 @@ +history.go(-1); \ No newline at end of file diff --git a/EXTRA/themes/index.php b/EXTRA/themes/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/index.php @@ -0,0 +1,2 @@ +history.go(-1); \ No newline at end of file diff --git a/EXTRA/themes/templates_fulldiv_opacity/blocks/index.php b/EXTRA/themes/templates_fulldiv_opacity/blocks/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/blocks/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/css/index.php b/EXTRA/themes/templates_fulldiv_opacity/css/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/css/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/css/language/english/index.php b/EXTRA/themes/templates_fulldiv_opacity/css/language/english/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/css/language/english/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/css/language/index.php b/EXTRA/themes/templates_fulldiv_opacity/css/language/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/css/language/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/css/language/persian/index.php b/EXTRA/themes/templates_fulldiv_opacity/css/language/persian/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/css/language/persian/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/icon/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/icon/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/icon/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/index.php @@ -0,0 +1,2 @@ +history.go(-1); \ No newline at end of file diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/language/english/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/language/english/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/language/english/index.php @@ -0,0 +1,2 @@ +history.go(-1); \ No newline at end of file diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/language/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/language/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/language/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/language/persian/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/language/persian/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/language/persian/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/mime/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/mime/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/mime/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/images/rpg/index.php b/EXTRA/themes/templates_fulldiv_opacity/images/rpg/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/images/rpg/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/index.php b/EXTRA/themes/templates_fulldiv_opacity/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/js/index.php b/EXTRA/themes/templates_fulldiv_opacity/js/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/js/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/js/language/english/index.php b/EXTRA/themes/templates_fulldiv_opacity/js/language/english/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/js/language/english/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/templates_fulldiv_opacity/js/language/index.php b/EXTRA/themes/templates_fulldiv_opacity/js/language/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/templates_fulldiv_opacity/js/language/index.php @@ -0,0 +1,2 @@ +" id="<{$form_post.name}>" action="<{$form_post.action}>" method="<{$form_post.method}>" <{$form_post.extra}> >
<{foreach item=element from=$form_post.elements}> - <{if $element.hidden != true}> + <{if $element.hidden !== true}>
<{$element.caption}>*
<{if $element.description != ''}> @@ -60,7 +60,7 @@ <{/foreach}>
<{foreach item=element from=$form_post.elements}> - <{if $element.hidden == true}> + <{if $element.hidden === true}> <{$element.body}>
<{/if}> diff --git a/EXTRA/themes/templates_fulldiv_opacity/newbb_notification_select.tpl b/EXTRA/themes/templates_fulldiv_opacity/newbb_notification_select.tpl index dca8a168..9bab3484 100644 --- a/EXTRA/themes/templates_fulldiv_opacity/newbb_notification_select.tpl +++ b/EXTRA/themes/templates_fulldiv_opacity/newbb_notification_select.tpl @@ -21,7 +21,7 @@
<{counter assign=index}> - checked="checked"<{/if}> > + checked<{/if}> >
<{$event.caption}>
diff --git a/EXTRA/themes/xbootstrap/index.html b/EXTRA/themes/xbootstrap/index.html deleted file mode 100644 index 74b6f45c..00000000 --- a/EXTRA/themes/xbootstrap/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/EXTRA/themes/xbootstrap/index.php b/EXTRA/themes/xbootstrap/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/xbootstrap/index.php @@ -0,0 +1,2 @@ +history.go(-1); \ No newline at end of file diff --git a/EXTRA/themes/xbootstrap/modules/index.php b/EXTRA/themes/xbootstrap/modules/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/xbootstrap/modules/index.php @@ -0,0 +1,2 @@ +history.go(-1); diff --git a/EXTRA/themes/xbootstrap/modules/newbb/index.php b/EXTRA/themes/xbootstrap/modules/newbb/index.php new file mode 100644 index 00000000..6a505435 --- /dev/null +++ b/EXTRA/themes/xbootstrap/modules/newbb/index.php @@ -0,0 +1,2 @@ +
-<{if $disclaimer}> +<{if $disclaimer|default:''}>
<{$disclaimer}>

<{/if}> -<{if $error_message}> +<{if $error_message|default:''}>
<{$error_message}>

<{/if}> -<{if $post_preview}> +<{if $post_preview|default:''}> @@ -53,13 +53,13 @@ method="<{$form_post.method}>" <{$form_post.extra}> >
<{$post_preview.subject}>
<{foreach item=element from=$form_post.elements}> - <{if $element.hidden != true}> + <{if $element.hidden|default:false != true}> @@ -69,7 +69,7 @@ <{/foreach}>
-
<{$element.caption}>* +
<{$element.caption|default:''}>*
- <{if $element.description != ''}> + <{if $element.description|default:'' != ''}>
<{$element.description}>
<{/if}>
<{foreach item=element from=$form_post.elements}> - <{if $element.hidden == true}> + <{if $element.hidden|default:false == true}> <{$element.body}> <{/if}> <{/foreach}> @@ -78,7 +78,7 @@

-<{if $posts_context}> +<{if $posts_context|default:''}> <{foreach item=post from=$posts_context}> diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_index.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_index.tpl index c9433f14..ceb59a93 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_index.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_index.tpl @@ -19,7 +19,7 @@ - <{if $wait_new_topic}><{$wait_new_topic}><{/if}> <{$smarty.const._MD_NEWBB_TYPE_PENDING}> + <{if $wait_new_topic|default:''}><{$wait_new_topic}><{/if}> <{$smarty.const._MD_NEWBB_TYPE_PENDING}> @@ -38,7 +38,7 @@ - <{if $wait_new_post}>(<{$wait_new_post}>)<{/if}> <{$smarty.const._MD_NEWBB_TYPE_PENDING}> + <{if $wait_new_post|default:''}>(<{$wait_new_post}>)<{/if}> <{$smarty.const._MD_NEWBB_TYPE_PENDING}> @@ -140,13 +140,13 @@ <{foreach item=forum from=$category.forums}>
- <{if $forum.subforum}> -
@@ -27,7 +26,7 @@ checked="checked"<{/if}> > + <{if $event.subscribed}>checked<{/if}> > diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_search.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_search.tpl index fb8ee230..fd653e9f 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_search.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_search.tpl @@ -2,7 +2,7 @@
  • <{$forumindex}>
  • <{$smarty.const._SR_SEARCH}>
  • -<{if $search_info}> +<{if $search_info|default:''}> <{include file="db:newbb_searchresults.tpl" results=$results}> <{/if}> @@ -50,7 +50,7 @@ <{$smarty.const._MD_NEWBB_SELECT_STARTLAG}>  @@ -59,11 +59,11 @@ - + - + diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_searchresults.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_searchresults.tpl index c6879351..ef95ba48 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_searchresults.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_searchresults.tpl @@ -35,11 +35,11 @@ <{/section}> - <{if $search_next or $search_prev}> + <{if $search_next|default:'' or $search_prev|default:''}> - - + + <{/if}> diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_thread.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_thread.tpl index 650aebdd..e296f7ef 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_thread.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_thread.tpl @@ -1,12 +1,12 @@
    - <{if $forum_post_prefix === null }> + <{if $forum_post_prefix|default:'' === null }> <{assign var=forum_post_prefix value="forumpost"}>
    <{/if}>
    <{$topic_post.poster.link}> - <{if $topic_post.poster.uid gt -1}> + <{if $topic_post.poster.uid|default:'' gt -1}> <{if $topic_post.poster.uid != 0}> <{if $topic_post.poster.avatar != "blank.gif"}> <{$topic_post.poster.name}> @@ -77,7 +77,7 @@
  • IP: <{$topic_post.poster_ip}>
  • <{/if}> - <{if $topic_post.poster.uid gt 0}> + <{if $topic_post.poster.uid|default:'' gt 0}>
  • <{$smarty.const._MD_NEWBB_POSTEDON}><{$topic_post.post_date}>
  • <{/if}> @@ -89,7 +89,7 @@ <{$topic_post.post_title}> <{if $topic_post.post_id > 0}> - + #<{$topic_post.post_no}> <{/if}> diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewall.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewall.tpl index b63560b1..d1ab651f 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewall.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewall.tpl @@ -1,9 +1,9 @@
    @@ -196,7 +196,7 @@ "> - + <{* irmtfan remove hardcoded html in URLs *}> - + <{* irmtfan hardcode removed align="right" *}> <{/foreach}> @@ -27,10 +27,10 @@ <{foreach item=topic from=$block.topics}> "> - + <{* irmtfan remove hardcoded html in URLs *}> - + <{* irmtfan hardcode removed align="right" *}> <{/foreach}> @@ -39,7 +39,7 @@ <{foreach item=topic from=$block.topics}> "> - + <{* irmtfan remove hardcoded html in URLs *}> <{/foreach}> @@ -49,9 +49,9 @@
    <{$lang_notificationoptions}> <{$event.caption}>
    - +
    <{$smarty.const._MD_NEWBB_SELECT_HTML}> <{$selecthtml_radio}><{$selecthtml_radio|default:''}>
    <{$smarty.const._MD_NEWBB_SELECT_EXCLUDE}> <{$selectexclude_check_box}><{$selectexclude_check_box|default:''}>
    <{$search_prev}> <{$search_next}><{$search_prev|default:''}> <{$search_next|default:''}>
    <{$topic.topic_icon}><{$topic.sticky}>
    <{$topic.digest}><{$topic.poll}>
      - <{$topic.topic_title}><{$topic.attachment}> <{$topic.topic_page_jump}> + <{$topic.topic_title}><{$topic.attachment|default:''}> <{$topic.topic_page_jump}>
    <{$headers.publish.title}>: <{$topic.topic_time}> @@ -243,7 +243,7 @@ <{if $pagenav}> - @@ -173,7 +173,7 @@ <{$topic.topic_title}> - +<{* <{$topic.attachment}> <{$topic.topic_page_jump}> *}>
    <{$topic.topic_time}>
    diff --git a/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewtopic.tpl b/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewtopic.tpl index a4cb24be..ed0ccc38 100644 --- a/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewtopic.tpl +++ b/EXTRA/themes/xbootstrap/modules/newbb/newbb_viewtopic.tpl @@ -14,7 +14,7 @@
  • <{$topic_title|strip_tags}> <{if $topicstatus}><{$topicstatus}><{/if}>
  • - <{if $tagbar}> + <{if $tagbar|default:false}>
    <{include file="db:tag_bar.tpl"}>
    @@ -44,29 +44,29 @@ <{/if}>
    - <{if $viewer_level gt 1}> -
    - <{if $mode gt 1}> -
    - <{$smarty.const._ALL}>: - + - - | - <{$smarty.const._MD_NEWBB_TYPE_VIEW}> - <{else}> - <{$smarty.const._MD_NEWBB_TYPE_ADMIN}> | - <{$smarty.const._MD_NEWBB_TYPE_PENDING}> | - <{$smarty.const._MD_NEWBB_TYPE_DELETED}> - <{/if}> -
    + <{/if}> + + + | + <{$smarty.const._MD_NEWBB_TYPE_VIEW}> + <{else}> + <{$smarty.const._MD_NEWBB_TYPE_ADMIN}> | + <{$smarty.const._MD_NEWBB_TYPE_PENDING}> | + <{$smarty.const._MD_NEWBB_TYPE_DELETED}> + <{/if}> +
    <{/if}>
    <{$forum_page_nav|replace:'form':'div'|replace:'id="xo-pagenav"':''}> @@ -74,7 +74,7 @@
    <{if $mode lte 1}> - <{if $topic_poll}> + <{if $topic_poll|default:''}> <{if $topic_pollresult}> <{include file="db:newbb_poll_results.tpl" poll=$poll}> <{else}> @@ -143,7 +143,7 @@ <{/foreach}> <{/if}> - <{if $adminpoll_actions|is_array && count($adminpoll_actions) > 0 }> + <{if $adminpoll_actions|default:null|is_array && count($adminpoll_actions) > 0 }> <{foreach item=actpoll from=$adminpoll_actions}> @@ -233,22 +233,22 @@ <{include file='db:newbb_notification_select.tpl'}> - + +<{* *}> + diff --git a/assets/css/index.php b/assets/css/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/css/index.php @@ -0,0 +1,3 @@ +history.go(-1); diff --git a/assets/images/category/index.php b/assets/images/category/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/images/category/index.php @@ -0,0 +1,3 @@ +history.go(-1); \ No newline at end of file diff --git a/assets/images/filetypes/index.php b/assets/images/filetypes/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/images/filetypes/index.php @@ -0,0 +1,3 @@ +history.go(-1); \ No newline at end of file diff --git a/assets/images/icons/index.php b/assets/images/icons/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/images/icons/index.php @@ -0,0 +1,3 @@ +history.go(-1); \ No newline at end of file diff --git a/assets/images/index.php b/assets/images/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/images/index.php @@ -0,0 +1,3 @@ +history.go(-1); diff --git a/assets/images/menu/index.php b/assets/images/menu/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/images/menu/index.php @@ -0,0 +1,3 @@ +history.go(-1); diff --git a/assets/index.php b/assets/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/index.php @@ -0,0 +1,3 @@ +history.go(-1); diff --git a/assets/js/index.php b/assets/js/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/assets/js/index.php @@ -0,0 +1,3 @@ +history.go(-1); diff --git a/blocks/index.php b/blocks/index.php new file mode 100644 index 00000000..2ea9b7d9 --- /dev/null +++ b/blocks/index.php @@ -0,0 +1,3 @@ +, irmtfan * @author The Persian Xoops Support Site * @since 4.3 * @package module::newbb */ -use XoopsModules\Newbb; +use XoopsModules\Newbb\{Helper, + TopicRenderer +}; -// defined('XOOPS_ROOT_PATH') || die('Restricted access'); +/** @var Helper $helper */ if (defined('LIST_TOPIC_DEFINED')) { return; @@ -53,7 +55,7 @@ function newbb_list_topic_show($options) { $newbbConfig = newbbLoadConfig(); // load all newbb configs - $topicRenderer = new Newbb\TopicRenderer(); + $topicRenderer = new TopicRenderer(); $topicRenderer->userlevel = $GLOBALS['xoopsUserIsAdmin'] ? 2 : is_object($GLOBALS['xoopsUser']); // Vistitor's level: 0 - anonymous; 1 - user; 2 - moderator or admin $topicRenderer->force = true; // force against static vars for parse @@ -71,22 +73,24 @@ function newbb_list_topic_show($options) // set and parse values: // forum: parse positive values to forum IDs and negative values to category IDs. value=0 => all valid forums - $topicRenderer->setVars([ - 'status' => $optionsStatus, - 'uid' => $options[1], - 'lastposter' => $options[2], - 'type' => $options[3], - 'sort' => $options[4], - 'order' => $options[5], - 'since' => $options[7], - 'forum' => $optionsForum, - ]); + $topicRenderer->setVars( + [ + 'status' => $optionsStatus, + 'uid' => $options[1], + 'lastposter' => $options[2], + 'type' => $options[3], + 'sort' => $options[4], + 'order' => $options[5], + 'since' => $options[7], + 'forum' => $optionsForum, + ] + ); $block = []; // headers to display in block $block['headers'] = $topicRenderer->getHeader($options[8]); // render a list of topics using all above criterias - list($block['topics'], $block['sticky']) = $topicRenderer->renderTopics(); + [$block['topics'], $block['sticky']] = $topicRenderer->renderTopics(); // show index navigation $block['indexNav'] = !empty($options[9]); @@ -105,7 +109,7 @@ function newbb_list_topic_edit($options) // $form = new \XoopsBlockForm(); //reserve for 2.6 $form = new \XoopsThemeForm(_MB_NEWBB_DISPLAYMODE_DESC, 'list_topic', ''); - $topicRenderer = new Newbb\TopicRenderer(); + $topicRenderer = new TopicRenderer(); $topicRenderer->userlevel = 2; // 2 - moderator or admin // status element @@ -182,10 +186,10 @@ function newbb_list_topic_edit($options) $optionsForum = explode(',', $options[12]); require_once dirname(__DIR__) . '/include/functions.forum.php'; /** @var Newbb\ForumHandler $forumHandler */ - $forumHandler = \XoopsModules\Newbb\Helper::getInstance()->getHandler('Forum'); + $forumHandler = Helper::getInstance()->getHandler('Forum'); //get forum Ids by values. parse positive values to forum IDs and negative values to category IDs. value=0 => all valid forums // Get accessible forums - $accessForums = $forumHandler->getIdsByValues(array_map('intval', $optionsForum)); + $accessForums = $forumHandler->getIdsByValues(array_map('\intval', $optionsForum)); $isAll = (0 === count($optionsForum) || empty($optionsForum[0])); $forumSel = "'; $form .= '
    <{$topic.forum_name}> <{$topic.title}> <{$topic.replies}> <{$topic.views}><{$topic.time}>
    <{$topic.topic_poster}> <{$topic.topic_page_jump}>
    <{$topic.title}> <{$topic.replies}><{$topic.time}>
    <{$topic.topic_poster}> <{$topic.topic_page_jump}>
    <{$topic.title}>
    <{if $block.indexNav}> - + <{* irmtfan hardcode removed style="text-align:right; padding: 5px;" *}>