stepan83
PPK
stepan83
PPK
еще тема от 2011г. но решения проблемы не указано http://www.phpbbguru.net/community/topic33618.htmlPPK писал(а):там за 2009 год сообщения.
Код: Выделить всё
$root_script_path .= (substr($root_script_path, -1, 1) == '/') ? '' : '/';
Код: Выделить всё
//hbd - hack to support who's online in viewtopic.php that phpBB SEO breaks
if (isset($_REQUEST['t']) && !isset($_REQUEST['f'])) {
global $db;
$sql = 'SELECT forum_id FROM ' . TOPICS_TABLE . ' WHERE topic_id = "' . $_REQUEST['t'] . '"';
$result = $db->sql_query($sql);
$forum_id_ary = $db->sql_fetchrow($result);
$_REQUEST['f'] = $forum_id_ary['forum_id'];
$db->sql_freeresult($result);
}
//end hack
stepan83