parent
43bd663cb3
commit
e317d96322
7 changed files with 114 additions and 11 deletions
|
|
@ -129,13 +129,13 @@ require PUN_ROOT.'include/functions.php';
|
|||
// Load DB abstraction layer and try to connect
|
||||
require PUN_ROOT.'include/dblayer/common_db.php';
|
||||
|
||||
// Load cached config
|
||||
@include PUN_ROOT.'cache/cache_config.php';
|
||||
if (!defined('PUN_CONFIG_LOADED'))
|
||||
{
|
||||
require PUN_ROOT.'include/cache.php';
|
||||
generate_config_cache();
|
||||
require PUN_ROOT.'cache/cache_config.php';
|
||||
// Load cached config
|
||||
@include PUN_ROOT.'cache/cache_config.php';
|
||||
if (!defined('PUN_CONFIG_LOADED'))
|
||||
{
|
||||
require PUN_ROOT.'include/cache.php';
|
||||
generate_config_cache();
|
||||
require PUN_ROOT.'cache/cache_config.php';
|
||||
}
|
||||
|
||||
// Make sure we (guests) have permission to read the forums
|
||||
|
|
@ -363,6 +363,10 @@ else if ( $_GET['action'] == 'topic') {
|
|||
;';
|
||||
|
||||
$result = $db->query($sql) or error('Unable to fetch posts list', __FILE__, __LINE__, $db->error());
|
||||
|
||||
if (isset($_GET['max_subject_length']) && is_numeric($_GET['max_subject_length']) && !empty($_GET['max_subject_length'])) {
|
||||
$max_subject_length = $_GET['max_subject_length'];
|
||||
}
|
||||
|
||||
while ($cur_post = $db->fetch_assoc($result))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue