При переносе сообщений из одной темы в другую - все отлично и надписи есть и ссылки в старой теме остаются.
Но вот при отделении сообщений в новую тему лезет ошибка
Код: Выделить всё
[phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 558: Missing argument 5 for move_posts(), called in /includes/mcp/mcp_topic.php on line 515 and defined
Код: Выделить всё
/**
* Move post(s)
*/
//-- mod: VE Move Post -------------------------------------------//
&!! function move_posts($post_ids, $topic_id, $auto_sync = true, &$move_link, &$move_reason)
{
global $db;
global $user, $phpbb_root_path, $phpEx;
$oldpost_data = array();
//-- end: VE Move Post -------------------------------------------//
Код: Выделить всё
$sql = 'INSERT INTO ' . TOPICS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
$db->sql_query($sql);
$to_topic_id = $db->sql_nextid();
&!! move_posts($post_id_list, $to_topic_id);
$topic_info = get_topic_data(array($topic_id));
$topic_info = $topic_info[$topic_id];