From e751324378e91fb60928d62340bc8f5f3f8cd3de Mon Sep 17 00:00:00 2001
From: berckoff
Date: Tue, 10 Jan 2012 14:01:49 +0000
Subject: [PATCH] Forum plugin: fixed some HTML incompliances + fixed call to a
private member of forum_class leading to parse_error
---
e107_plugins/forum/forum_viewtopic.php | 2 +-
e107_plugins/forum/newforumposts_menu.php | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/e107_plugins/forum/forum_viewtopic.php b/e107_plugins/forum/forum_viewtopic.php
index de6f32e7e..ea07468c5 100644
--- a/e107_plugins/forum/forum_viewtopic.php
+++ b/e107_plugins/forum/forum_viewtopic.php
@@ -378,7 +378,7 @@ function forumjump()
{
$text .= "\n" . $val . " ";
}
- $text .= " ";
+ $text .= "
";
return $text;
}
diff --git a/e107_plugins/forum/newforumposts_menu.php b/e107_plugins/forum/newforumposts_menu.php
index 6423b094e..5191062ad 100755
--- a/e107_plugins/forum/newforumposts_menu.php
+++ b/e107_plugins/forum/newforumposts_menu.php
@@ -24,7 +24,7 @@ $max_age = varset($menu_pref['newforumposts_maxage'], 0);
$max_age = $max_age == 0 ? '' : '(t.post_datestamp > '.(time()-(int)$max_age*86400).') AND ';
$forum = new e107forum;
-$forumList = implode(',', $forum->permList['view']);
+$forumList = implode(',', $forum->getForumPermList('view'));
//TODO: Use query from forum class to get thread list
$qry = "
SELECT
@@ -74,14 +74,12 @@ if($results = $e107->sql->db_Select_gen($qry))
}
else
{
- $text .= "".NFP_11." {$poster} {$post} {$datestamp} ";
+ $text .= "".NFP_11." {$poster} {$post} {$datestamp} ";
}
}
}
else
{
$text = NFP_2;
-
}
-$e107->ns->tablerender($menu_pref['newforumposts_caption'], $text, 'nfp_menu');
-?>
\ No newline at end of file
+$e107->ns->tablerender($menu_pref['newforumposts_caption'], $text, 'nfp_menu');
\ No newline at end of file