mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/12612] Prefix get_*_data() with phpbb_ and delete unused global
PHPBB3-12612
This commit is contained in:
@@ -33,7 +33,7 @@ function mcp_topic_view($id, $mode, $action)
|
||||
$pagination = $phpbb_container->get('pagination');
|
||||
|
||||
$topic_id = request_var('t', 0);
|
||||
$topic_info = get_topic_data(array($topic_id), false, true);
|
||||
$topic_info = phpbb_get_topic_data(array($topic_id), false, true);
|
||||
|
||||
if (!sizeof($topic_info))
|
||||
{
|
||||
@@ -278,7 +278,7 @@ function mcp_topic_view($id, $mode, $action)
|
||||
// Has the user selected a topic for merge?
|
||||
if ($to_topic_id)
|
||||
{
|
||||
$to_topic_info = get_topic_data(array($to_topic_id), 'm_merge');
|
||||
$to_topic_info = phpbb_get_topic_data(array($to_topic_id), 'm_merge');
|
||||
|
||||
if (!sizeof($to_topic_info))
|
||||
{
|
||||
@@ -374,7 +374,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||
}
|
||||
|
||||
$post_id = $post_id_list[0];
|
||||
$post_info = get_post_data(array($post_id));
|
||||
$post_info = phpbb_get_post_data(array($post_id));
|
||||
|
||||
if (!sizeof($post_info))
|
||||
{
|
||||
@@ -398,7 +398,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||
return;
|
||||
}
|
||||
|
||||
$forum_info = get_forum_data(array($to_forum_id), 'f_post');
|
||||
$forum_info = phpbb_get_forum_data(array($to_forum_id), 'f_post');
|
||||
|
||||
if (!sizeof($forum_info))
|
||||
{
|
||||
@@ -505,7 +505,7 @@ function split_topic($action, $topic_id, $to_forum_id, $subject)
|
||||
$to_topic_id = $db->sql_nextid();
|
||||
move_posts($post_id_list, $to_topic_id);
|
||||
|
||||
$topic_info = get_topic_data(array($topic_id));
|
||||
$topic_info = phpbb_get_topic_data(array($topic_id));
|
||||
$topic_info = $topic_info[$topic_id];
|
||||
|
||||
add_log('mod', $to_forum_id, $to_topic_id, 'LOG_SPLIT_DESTINATION', $subject);
|
||||
@@ -594,7 +594,7 @@ function merge_posts($topic_id, $to_topic_id)
|
||||
|
||||
$sync_topics = array($topic_id, $to_topic_id);
|
||||
|
||||
$topic_data = get_topic_data($sync_topics, 'm_merge');
|
||||
$topic_data = phpbb_get_topic_data($sync_topics, 'm_merge');
|
||||
|
||||
if (!sizeof($topic_data) || empty($topic_data[$to_topic_id]))
|
||||
{
|
||||
|
Reference in New Issue
Block a user