1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Forum plugin: fixed some HTML incompliances + fixed call to a private member of forum_class leading to parse_error

This commit is contained in:
berckoff
2012-01-10 14:01:49 +00:00
parent 397a75c059
commit e751324378
2 changed files with 4 additions and 6 deletions

View File

@@ -378,7 +378,7 @@ function forumjump()
{ {
$text .= "\n<option value='" . $key . "'>" . $val . "</option>"; $text .= "\n<option value='" . $key . "'>" . $val . "</option>";
} }
$text .= "</select> <input class='button' type='submit' name='fjsubmit' value='" . LAN_03 . "' /></form>"; $text .= "</select> <input class='button' type='submit' name='fjsubmit' value='" . LAN_03 . "' /></p></form>";
return $text; return $text;
} }

View File

@@ -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 '; $max_age = $max_age == 0 ? '' : '(t.post_datestamp > '.(time()-(int)$max_age*86400).') AND ';
$forum = new e107forum; $forum = new e107forum;
$forumList = implode(',', $forum->permList['view']); $forumList = implode(',', $forum->getForumPermList('view'));
//TODO: Use query from forum class to get thread list //TODO: Use query from forum class to get thread list
$qry = " $qry = "
SELECT SELECT
@@ -74,14 +74,12 @@ if($results = $e107->sql->db_Select_gen($qry))
} }
else else
{ {
$text .= "<a href='{$url}'>".NFP_11." {$poster}</a><br />{$post}<br />{$datestamp}<br/><br />"; $text .= "<a href='{$url}'>".NFP_11."</a> {$poster}<br />{$post}<br />{$datestamp}<br/><br />";
} }
} }
} }
else else
{ {
$text = NFP_2; $text = NFP_2;
} }
$e107->ns->tablerender($menu_pref['newforumposts_caption'], $text, 'nfp_menu'); $e107->ns->tablerender($menu_pref['newforumposts_caption'], $text, 'nfp_menu');
?>