From 0f2e4691ee850e6a2b3eb16e9d0b576400440705 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Sun, 25 Mar 2018 01:04:44 -0400 Subject: [PATCH 1/7] 4.33 Final --- language/english/main.php | 1 + xoops_version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/language/english/main.php b/language/english/main.php index 2977c54a..482943d7 100644 --- a/language/english/main.php +++ b/language/english/main.php @@ -22,6 +22,7 @@ define('_MD_ALL_FORUM_MARKED', 'All forums marked'); define('_MD_ALL_TOPIC_MARKED', 'All topics marked'); define('_MD_BOARD_DISCLAIMER', 'Forum Disclaimer'); +define('_MD_POSTEDON', 'Posted on: '); //index.php define('_MD_ADMINCP', 'Admin Panel'); define('_MD_FORUM', 'Forum'); diff --git a/xoops_version.php b/xoops_version.php index 51e89e08..f50874e8 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -11,7 +11,7 @@ $modversion['version'] = 4.33; $modversion['module_status'] = 'Final'; -$modversion['release_date'] = '2016/11/27'; +$modversion['release_date'] = '2018/03/24'; $modversion['name'] = _MI_NEWBB_NAME; $modversion['description'] = _MI_NEWBB_DESC; $modversion['credits'] = 'NewBB 2 developed by Marko Schmuck (predator) / D.J. (phppp) / Alfred(dhcst)'; From 508c415b4ebb968c7daaf4617c18c23822ac12b9 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Sun, 25 Mar 2018 01:13:31 -0400 Subject: [PATCH 2/7] https://github.com/XoopsModules25x/newbb/issues/49 --- language/english/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/english/main.php b/language/english/main.php index 482943d7..469872cc 100644 --- a/language/english/main.php +++ b/language/english/main.php @@ -252,7 +252,7 @@ define('_MD_REGISTER', 'Register'); define('_MD_SUBJECTC', 'Subject:'); define('_MD_MESSAGEICON', 'Message Icon:'); -define('_MD_MESSAGEC', 'Message:'); +//define('_MD_MESSAGEC', 'Message:'); define('_MD_ALLOWEDHTML', 'Allowed HTML:'); define('_MD_OPTIONS', 'Options:'); define('_MD_POSTANONLY', 'Post Anonymously'); From a2f9a86d785131d6ff01256800afbeb83a17ce37 Mon Sep 17 00:00:00 2001 From: mambax7 Date: Sun, 25 Mar 2018 02:27:29 -0400 Subject: [PATCH 3/7] assignment in condition --- action.post.php | 18 +- action.topic.php | 10 +- admin/admin_cat_manager.php | 2 +- admin/admin_digest.php | 2 +- admin/admin_forum_manager.php | 6 +- admin/admin_forum_prune.php | 18 +- admin/admin_forum_reorder.php | 10 +- admin/admin_groupmod.php | 6 +- admin/admin_permissions.php | 36 +- admin/admin_report.php | 4 +- admin/admin_synchronization.php | 4 +- admin/admin_type_manager.php | 16 +- admin/index.php | 6 +- admin/menu.php | 52 +-- blocks/list_topic.php | 6 +- blocks/newbb_block.php | 36 +- class/category.php | 2 +- class/digest.php | 16 +- class/forum.php | 102 +++--- class/icon.php | 6 +- class/moderate.php | 10 +- class/newbbtree.php | 8 +- class/online.php | 36 +- class/permission.category.php | 4 +- class/permission.forum.php | 11 +- class/permission.php | 18 +- class/plugin/userlog.php | 10 +- class/plugins/plugin.tag.php | 8 +- class/post.php | 48 +-- class/read.php | 8 +- class/readforum.php | 4 +- class/readtopic.php | 6 +- class/report.php | 10 +- class/stats.php | 24 +- class/topic.php | 20 +- class/topic.renderer.php | 188 +++++----- class/tree.php | 22 +- class/type.php | 20 +- class/uploader.php | 4 +- class/user.php | 48 +-- class/userstats.php | 2 +- class/utilities.php | 2 +- class/xmlrss.php | 10 +- delete.php | 8 +- docs/changelog.txt | 7 +- edit.php | 14 +- footer.php | 2 +- header.php | 6 +- include/config.php | 4 +- include/form.post.php | 18 +- include/functions.forum.php | 8 +- include/functions.image.php | 2 +- include/functions.recon.php | 8 +- include/functions.render.php | 2 +- include/functions.session.php | 12 +- include/functions.text.php | 2 +- include/functions.user.php | 12 +- include/functions.welcome.inc.php | 14 +- include/module.php | 16 +- include/module.v220.php | 6 +- include/module.v400.php | 10 +- include/plugin.dist.php | 8 +- include/plugin.php | 8 +- include/search.inc.php | 4 +- include/sitemap.plugin.php | 24 +- index.php | 38 +- list.topic.php | 2 +- makepdf.php | 10 +- moderate.php | 4 +- newtopic.php | 4 +- polls.php | 20 +- post.php | 28 +- ratethread.php | 2 +- reply.php | 16 +- report.php | 4 +- rss.php | 8 +- search.php | 24 +- seo.php | 6 +- seo_url.php | 28 +- templates/blocks/newbb_block.tpl | 6 +- templates/blocks/newbb_block_author.tpl | 4 +- templates/blocks/newbb_block_list_topic.tpl | 2 +- templates/blocks/newbb_block_post.tpl | 8 +- templates/blocks/newbb_block_text.tpl | 2 +- templates/blocks/newbb_block_topic.tpl | 6 +- templates/newbb_edit_post.tpl | 8 +- templates/newbb_index.tpl | 12 +- templates/newbb_online.tpl | 2 +- templates/newbb_poll_results.tpl | 2 +- templates/newbb_poll_view.tpl | 2 +- templates/newbb_rss.tpl | 2 +- templates/newbb_thread.tpl | 6 +- templates/newbb_viewall.tpl | 2 +- templates/newbb_viewforum.tpl | 6 +- templates/newbb_viewforum_menu.tpl | 2 +- templates/newbb_viewforum_subforum.tpl | 2 +- templates/newbb_viewpost.tpl | 4 +- templates/newbb_viewtopic.tpl | 16 +- .../blocks/newbb_block.tpl | 6 +- .../blocks/newbb_block_author.tpl | 4 +- .../blocks/newbb_block_list_topic.tpl | 2 +- .../blocks/newbb_block_post.tpl | 8 +- .../blocks/newbb_block_text.tpl | 2 +- .../blocks/newbb_block_topic.tpl | 6 +- templates_fulldiv_opacity/newbb_edit_post.tpl | 8 +- templates_fulldiv_opacity/newbb_index.tpl | 8 +- templates_fulldiv_opacity/newbb_online.tpl | 2 +- .../newbb_poll_results.tpl | 2 +- templates_fulldiv_opacity/newbb_poll_view.tpl | 2 +- templates_fulldiv_opacity/newbb_rss.tpl | 2 +- templates_fulldiv_opacity/newbb_thread.tpl | 6 +- templates_fulldiv_opacity/newbb_viewall.tpl | 2 +- templates_fulldiv_opacity/newbb_viewforum.tpl | 6 +- .../newbb_viewforum_menu.tpl | 2 +- .../newbb_viewforum_subforum.tpl | 2 +- templates_fulldiv_opacity/newbb_viewpost.tpl | 6 +- templates_fulldiv_opacity/newbb_viewtopic.tpl | 16 +- topicmanager.php | 18 +- update_type.php | 4 +- viewforum.php | 34 +- viewpost.php | 50 +-- viewtopic.php | 147 ++++---- votepolls.php | 4 +- xoops_version.php | 326 +++++++++--------- 124 files changed, 1023 insertions(+), 1014 deletions(-) diff --git a/action.post.php b/action.post.php index 27f56667..f1592e7e 100644 --- a/action.post.php +++ b/action.post.php @@ -15,7 +15,7 @@ $uid = XoopsRequest::getInt('uid', 0, 'GET'); $op = XoopsRequest::getCmd('op', XoopsRequest::getCmd('op', '', 'POST'), 'GET'); -$op = in_array($op, array('approve', 'delete', 'restore', 'split'), true) ? $op : ''; +$op = in_array($op, ['approve', 'delete', 'restore', 'split'], true) ? $op : ''; $mode = XoopsRequest::getInt('mode', 1, 'GET'); if (0 === count($post_id) || 0 === count($op)) { @@ -43,8 +43,8 @@ case 'restore': $post_id = array_values($post_id); sort($post_id); - $topics = array(); - $forums = array(); + $topics = []; + $forums = []; foreach ($post_id as $post) { $post_obj = $postHandler->get($post); if ($post_obj->getVar('topic_id') < 1) { @@ -65,8 +65,8 @@ case 'approve': $post_id = array_values($post_id); sort($post_id); - $topics = array(); - $forums = array(); + $topics = []; + $forums = []; $criteria = new Criteria('post_id', '(' . implode(',', $post_id) . ')', 'IN'); $posts_obj = $postHandler->getObjects($criteria, true); foreach ($post_id as $post) { @@ -98,7 +98,7 @@ include_once __DIR__ . '/include/notification.inc.php'; $notificationHandler = xoops_getHandler('notification'); foreach ($post_id as $post) { - $tags = array(); + $tags = []; $tags['THREAD_NAME'] = $topic_list[$posts_obj[$post]->getVar('topic_id')]; $tags['THREAD_URL'] = XOOPS_URL . '/modules/' @@ -122,8 +122,8 @@ case 'delete': $post_id = array_values($post_id); rsort($post_id); - $topics = array(); - $forums = array(); + $topics = []; + $forums = []; foreach ($post_id as $post) { $post_obj = $postHandler->get($post); if (!empty($topic_id) && $topic_id !== $post_obj->getVar('topic_id')) { @@ -191,7 +191,7 @@ $posts = $postHandler->getList($criteria); unset($criteria); - $post_update = array(); + $post_update = []; foreach ($posts as $postid => $pid) { // if (!in_array($pid, array_keys($posts))) { if (!array_key_exists($pid, $posts)) { diff --git a/action.topic.php b/action.topic.php index d1f98e04..86fc3f6c 100644 --- a/action.topic.php +++ b/action.topic.php @@ -14,7 +14,7 @@ $topic_id = XoopsRequest::getArray('topic_id', null, 'POST'); $op = XoopsRequest::getCmd('op', '', 'POST'); -$op = in_array($op, array('approve', 'delete', 'restore', 'move'), true) ? $op : ''; +$op = in_array($op, ['approve', 'delete', 'restore', 'move'], true) ? $op : ''; if (0 === count($topic_id) || 0 === count($op)) { // irmtfan - issue with javascript:history.go(-1) @@ -32,7 +32,7 @@ } switch ($op) { case 'restore': - $forums = array(); + $forums = []; $topics_obj = $topicHandler->getAll(new Criteria('topic_id', '(' . implode(',', $topic_id) . ')', 'IN')); foreach (array_keys($topics_obj) as $id) { $topic_obj =& $topics_obj[$id]; @@ -48,7 +48,7 @@ unset($topics_obj, $forums_obj); break; case 'approve': - $forums = array(); + $forums = []; $topics_obj = $topicHandler->getAll(new Criteria('topic_id', '(' . implode(',', $topic_id) . ')', 'IN')); foreach (array_keys($topics_obj) as $id) { $topic_obj =& $topics_obj[$id]; @@ -71,7 +71,7 @@ $notificationHandler = xoops_getHandler('notification'); foreach (array_keys($topics_obj) as $id) { $topic_obj =& $topics_obj[$id]; - $tags = array(); + $tags = []; $tags['THREAD_NAME'] = $topic_obj->getVar('topic_title'); $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/viewtopic.php?topic_id=' . $id . '&forum=' . $topic_obj->getVar('forum_id'); $tags['FORUM_NAME'] = $forums_obj[$topic_obj->getVar('forum_id')]->getVar('forum_name'); @@ -92,7 +92,7 @@ unset($topics_obj, $forums_obj); break; case 'delete': - $forums = array(); + $forums = []; $topics_obj = $topicHandler->getAll(new Criteria('topic_id', '(' . implode(',', $topic_id) . ')', 'IN')); foreach (array_keys($topics_obj) as $id) { $topic_obj =& $topics_obj[$id]; diff --git a/admin/admin_cat_manager.php b/admin/admin_cat_manager.php index 829ccc07..c18af5af 100644 --- a/admin/admin_cat_manager.php +++ b/admin/admin_cat_manager.php @@ -123,7 +123,7 @@ function editCategory(XoopsObject $category_obj = null) case 'del': if (!XoopsRequest::getBool('confirm', '', 'POST')) { - xoops_confirm(array('op' => 'del', 'cat_id' => XoopsRequest::getInt('cat_id', 0, 'GET'), 'confirm' => 1), 'admin_cat_manager.php', _AM_NEWBB_WAYSYWTDTTAL); + xoops_confirm(['op' => 'del', 'cat_id' => XoopsRequest::getInt('cat_id', 0, 'GET'), 'confirm' => 1], 'admin_cat_manager.php', _AM_NEWBB_WAYSYWTDTTAL); break; } else { $category_obj = $categoryHandler->create(false); diff --git a/admin/admin_digest.php b/admin/admin_digest.php index 70df3184..c706e0c6 100644 --- a/admin/admin_digest.php +++ b/admin/admin_digest.php @@ -66,7 +66,7 @@ echo "" . _DELETE . ''; echo ''; - $digests = array(); + $digests = []; $digestHandler = xoops_getModuleHandler('digest', 'newbb'); $digests = $digestHandler->getAllDigests($start, $limit); foreach ($digests as $digest) { diff --git a/admin/admin_forum_manager.php b/admin/admin_forum_manager.php index 6105bdcb..fd6afd35 100644 --- a/admin/admin_forum_manager.php +++ b/admin/admin_forum_manager.php @@ -152,13 +152,13 @@ $forum_obj->setVar('forum_name', XoopsRequest::getString('forum_name', '', 'POST')); $forum_obj->setVar('forum_desc', XoopsRequest::getString('forum_desc', '', 'POST')); $forum_obj->setVar('forum_order', XoopsRequest::getInt('forum_order', 0, 'POST')); - $forum_obj->setVar('forum_moderator', XoopsRequest::getArray('forum_moderator', array(), 'POST')); + $forum_obj->setVar('forum_moderator', XoopsRequest::getArray('forum_moderator', [], 'POST')); $forum_obj->setVar('parent_forum', XoopsRequest::getInt('parent_forum', 0, 'POST')); $forum_obj->setVar('attach_maxkb', XoopsRequest::getInt('attach_maxkb', 0, 'POST')); $forum_obj->setVar('attach_ext', XoopsRequest::getString('attach_ext', '', 'POST')); $forum_obj->setVar('hot_threshold', XoopsRequest::getInt('hot_threshold', 0, 'POST')); if (XoopsRequest::getInt('parent_forum', 0, 'POST')) { - $parent_obj = $forumHandler->get(XoopsRequest::getInt('parent_forum', 0, 'POST'), array('cat_id')); + $parent_obj = $forumHandler->get(XoopsRequest::getInt('parent_forum', 0, 'POST'), ['cat_id']); $_POST['cat_id'] = $parent_obj->getVar('cat_id'); } $forum_obj->setVar('cat_id', XoopsRequest::getInt('cat_id', 0, 'POST')); @@ -202,7 +202,7 @@ case 'del': if (1 !== XoopsRequest::getInt('confirm', 0, 'POST')) { - xoops_confirm(array('op' => 'del', 'forum' => XoopsRequest::getInt('forum', 0, 'GET'), 'confirm' => 1), 'admin_forum_manager.php', _AM_NEWBB_TWDAFAP); + xoops_confirm(['op' => 'del', 'forum' => XoopsRequest::getInt('forum', 0, 'GET'), 'confirm' => 1], 'admin_forum_manager.php', _AM_NEWBB_TWDAFAP); break; } else { $forum_obj = $forumHandler->get(XoopsRequest::getInt('forum', 0, 'POST')); diff --git a/admin/admin_forum_prune.php b/admin/admin_forum_prune.php index 74c1cffb..d7b31065 100644 --- a/admin/admin_forum_prune.php +++ b/admin/admin_forum_prune.php @@ -83,12 +83,12 @@ $sql .= ' AND p.post_time<= ' . $prune_ddays . ' '; // Ok now we have the sql query completed, go for topic_id's and posts_id's - $topics = array(); + $topics = []; if (!$result = $GLOBALS['xoopsDB']->query($sql)) { return _MD_ERROR; } // Dave_L code - while ($row = $GLOBALS['xoopsDB']->fetchArray($result)) { + while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) { $topics[] = $row['topic_id']; } $topics_number = count($topics); @@ -98,12 +98,12 @@ if ('' !== $topic_list) { $sql = 'SELECT post_id FROM ' . $GLOBALS['xoopsDB']->prefix('bb_posts') . ' WHERE topic_id IN (' . $topic_list . ')'; - $posts = array(); + $posts = []; if (!$result = $GLOBALS['xoopsDB']->query($sql)) { return _MD_ERROR; } // Dave_L code - while ($row = $GLOBALS['xoopsDB']->fetchArray($result)) { + while (false !== ($row = $GLOBALS['xoopsDB']->fetchArray($result))) { $posts[] = $row['post_id']; } $posts_number = count($posts); @@ -172,7 +172,7 @@ // $result = $GLOBALS['xoopsDB']->query(); // Days selected by selbox (better error control :lol:) $days = new XoopsFormSelect(_AM_NEWBB_PRUNE_DAYS, 'days', null, 1, false); - $days->addOptionArray(array( + $days->addOptionArray([ 604800 => _AM_NEWBB_PRUNE_WEEK, 1209600 => _AM_NEWBB_PRUNE_2WEEKS, 2592000 => _AM_NEWBB_PRUNE_MONTH, @@ -180,7 +180,7 @@ 10368000 => _AM_NEWBB_PRUNE_4MONTH, 31536000 => _AM_NEWBB_PRUNE_YEAR, 63072000 => _AM_NEWBB_PRUNE_2YEARS - )); + ]); $sform->addElement($days); // START irmtfan remove hardcode db access include_once $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname') . '/footer.php'); // to include js files @@ -202,7 +202,7 @@ do { $checkbox->addOption($myrow['forum_id'], $myrow['forum_name']); $radiobox->addOption($myrow['forum_id'], $myrow['forum_name']); - } while ($myrow = $GLOBALS['xoopsDB']->fetchArray($result)); + } while (false !== ($myrow = $GLOBALS['xoopsDB']->fetchArray($result); } else { echo "NO FORUMS"; } @@ -231,7 +231,7 @@ $sform->addElement($lock_confirmation); $hot_confirmation = new XoopsFormSelect(_AM_NEWBB_PRUNE_HOT, 'hot', null, 1, false); - $hot_confirmation->addOptionArray(array( + $hot_confirmation->addOptionArray([ '0' => 0, '5' => 5, '10' => 10, @@ -239,7 +239,7 @@ '20' => 20, '25' => 25, '30' => 30 - )); + ]); $sform->addElement($hot_confirmation); $sform->addElement(/*$radiobox*/ diff --git a/admin/admin_forum_reorder.php b/admin/admin_forum_reorder.php index 02a9a34e..7c6c06b6 100644 --- a/admin/admin_forum_reorder.php +++ b/admin/admin_forum_reorder.php @@ -53,10 +53,10 @@ redirect_header('admin_forum_reorder.php', 1, _AM_NEWBB_BOARDREORDER); } else { include_once $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname') . '/class/xoopsformloader.php'); - $orders = array(); - $cat_orders = array(); - $forum = array(); - $cat = array(); + $orders = []; + $cat_orders = []; + $forum = []; + $cat = []; xoops_cp_header(); echo '
'; @@ -77,7 +77,7 @@ $categoryHandler = xoops_getModuleHandler('category', 'newbb'); $criteriaCategory = new CriteriaCompo(new criteria('1', 1)); $criteriaCategory->setSort('cat_order'); - $categories = $categoryHandler->getAll($criteriaCategory, array('cat_id', 'cat_order', 'cat_title')); + $categories = $categoryHandler->getAll($criteriaCategory, ['cat_id', 'cat_order', 'cat_title']); $forums = $forumHandler->getTree(array_keys($categories), 0, 'all', '    '); foreach (array_keys($categories) as $c) { echo ''; diff --git a/admin/admin_groupmod.php b/admin/admin_groupmod.php index a185ef13..d2cc66d5 100644 --- a/admin/admin_groupmod.php +++ b/admin/admin_groupmod.php @@ -38,10 +38,10 @@ if (XoopsRequest::getString('submit', '', 'POST')) { $fgroups = XoopsRequest::getArray('group', '', 'POST');// !empty($_POST['group']) ? $_POST['group'] : ''; $fforum = XoopsRequest::getInt('forenid', 0, 'POST');// (int)($_POST['forenid']); - $fuser = array(); + $fuser = []; if ($fforum !== 0) { if ($fgroups !== '') { - $gg = array(); + $gg = []; foreach ($fgroups as $k) { $gg = $memberHandler->getUsersByGroup($k, false); foreach ($gg as $f) { @@ -72,7 +72,7 @@ $categoryHandler = xoops_getModuleHandler('category', 'newbb'); $criteriaCategory = new CriteriaCompo(new criteria('1', 1)); $criteriaCategory->setSort('cat_order'); -$categories = $categoryHandler->getAll($criteriaCategory, array('cat_id', 'cat_order', 'cat_title')); +$categories = $categoryHandler->getAll($criteriaCategory, ['cat_id', 'cat_order', 'cat_title']); $forums = $forumHandler->getTree(array_keys($categories), 0, 'all', '    '); echo ' <{$poll.question}> - <{foreachq item=option from=$poll.options}> + <{foreach item=option from=$poll.options}> <{*-- irmtfan hardcode removed align="left" --*}> <{$option.input}> diff --git a/templates/newbb_rss.tpl b/templates/newbb_rss.tpl index f563f75d..966db046 100644 --- a/templates/newbb_rss.tpl +++ b/templates/newbb_rss.tpl @@ -20,7 +20,7 @@ <{$rss.image_height}> <{/if}> - <{foreachq item=item from=$rss.items}> + <{foreach item=item from=$rss.items}> <{$item.title}> <{$item.link}> diff --git a/templates/newbb_thread.tpl b/templates/newbb_thread.tpl index 19719a65..5c412fd1 100644 --- a/templates/newbb_thread.tpl +++ b/templates/newbb_thread.tpl @@ -72,7 +72,7 @@ <{/if}> <{if $topic_post.poster.groups}>
<{$smarty.const._MD_GROUP}> - <{foreachq item=group from=$topic_post.poster.groups}>
<{$group}><{/foreach}> + <{foreach item=group from=$topic_post.poster.groups}>
<{$group}><{/foreach}>
<{/if}>
@@ -158,7 +158,7 @@ <{if $topic_post.thread_action}> - <{foreachq item=btn from=$topic_post.thread_action}> + <{foreach item=btn from=$topic_post.thread_action}> <{else}> <{if $topic_post.thread_buttons}> - <{foreachq item=btn from=$topic_post.thread_buttons}> + <{foreach item=btn from=$topic_post.thread_buttons}> <{$btn.image}> diff --git a/templates/newbb_viewall.tpl b/templates/newbb_viewall.tpl index 66faa04a..f72b3480 100644 --- a/templates/newbb_viewall.tpl +++ b/templates/newbb_viewall.tpl @@ -194,7 +194,7 @@ - <{foreachq name=loop item=topic from=$topics}> + <{foreach name=loop item=topic from=$topics}> "> diff --git a/templates/newbb_viewforum.tpl b/templates/newbb_viewforum.tpl index 6c67e3cc..3e13f5c1 100644 --- a/templates/newbb_viewforum.tpl +++ b/templates/newbb_viewforum.tpl @@ -7,7 +7,7 @@ » <{$category.title}> <{if $parentforum}> - <{foreachq item=forum from=$parentforum}> + <{foreach item=forum from=$parentforum}> » <{$forum.forum_name}> <{/foreach}> @@ -145,7 +145,7 @@ - <{foreachq name=loop item=topic from=$topics}> + <{foreach name=loop item=topic from=$topics}> <{if $topic.stick AND $smarty.foreach.loop.iteration == $sticky+1}> @@ -293,7 +293,7 @@
- <{foreachq item=perm from=$permission_table}> + <{foreach item=perm from=$permission_table}>
<{$perm}>
<{/foreach}>
diff --git a/templates/newbb_viewforum_menu.tpl b/templates/newbb_viewforum_menu.tpl index ce90709d..939e2548 100644 --- a/templates/newbb_viewforum_menu.tpl +++ b/templates/newbb_viewforum_menu.tpl @@ -21,7 +21,7 @@ onchange="if(this.options[this.selectedIndex].value.length >0 ) { window.location=this.options[this.selectedIndex].value;}" > - <{foreachq item=opt from=$typeOptions}> + <{foreach item=opt from=$typeOptions}> <{/foreach}> diff --git a/templates/newbb_viewforum_subforum.tpl b/templates/newbb_viewforum_subforum.tpl index 3b5bcd78..39202750 100644 --- a/templates/newbb_viewforum_subforum.tpl +++ b/templates/newbb_viewforum_subforum.tpl @@ -7,7 +7,7 @@ <{$smarty.const._MD_LASTPOST}> - <{foreachq item=sforum from=$subforum}> + <{foreach item=sforum from=$subforum}> <{$sforum.forum_folder}> diff --git a/templates/newbb_viewpost.tpl b/templates/newbb_viewpost.tpl index b7b6c84b..26df4abc 100644 --- a/templates/newbb_viewpost.tpl +++ b/templates/newbb_viewpost.tpl @@ -84,7 +84,7 @@ onchange="if(this.options[this.selectedIndex].value.length >0 ) { window.document.location=this.options[this.selectedIndex].value;}" > - <{foreachq item=act from=$viewmode_options}> + <{foreach item=act from=$viewmode_options}> <{/foreach}> @@ -99,7 +99,7 @@

-<{foreachq item=post from=$posts}> +<{foreach item=post from=$posts}> <{includeq file="db:newbb_thread.tpl" topic_post=$post}>