phpBB

Code Changes

File: includes/functions_mcp.php

  Unmodified   Added   Modified   Removed
Line 22Line 22
/**
* Functions used to generate additional URL paramters
*/

/**
* Functions used to generate additional URL paramters
*/

function phpbb_module__url($mode, &$module_row)

function phpbb_module__url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_notes_url($mode, &$module_row)

function phpbb_module_notes_url($mode, $module_row)

{
if ($mode == 'front')
{

{
if ($mode == 'front')
{

Line 38Line 38
	return ($user_id) ? "&u=$user_id" : '';
}


	return ($user_id) ? "&u=$user_id" : '';
}


function phpbb_module_warn_url($mode, &$module_row)

function phpbb_module_warn_url($mode, $module_row)

{
if ($mode == 'front' || $mode == 'list')
{

{
if ($mode == 'front' || $mode == 'list')
{

Line 64Line 64
	}
}


	}
}


function phpbb_module_main_url($mode, &$module_row)

function phpbb_module_main_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_logs_url($mode, &$module_row)

function phpbb_module_logs_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_ban_url($mode, &$module_row)

function phpbb_module_ban_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_queue_url($mode, &$module_row)

function phpbb_module_queue_url($mode, $module_row)

{
return phpbb_extra_url();
}


{
return phpbb_extra_url();
}


function phpbb_module_reports_url($mode, &$module_row)

function phpbb_module_reports_url($mode, $module_row)

{
return phpbb_extra_url();
}

{
return phpbb_extra_url();
}

Line 197Line 197
*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

*/
function phpbb_get_post_data($post_ids, $acl_list = false, $read_tracking = false)
{

	global $db, $auth, $config, $user, $phpbb_container;

	global $db, $auth, $config, $user, $phpbb_dispatcher, $phpbb_container;


$rowset = array();



$rowset = array();


Line 264Line 264
		$rowset[$row['post_id']] = $row;
}
$db->sql_freeresult($result);

		$rowset[$row['post_id']] = $row;
}
$db->sql_freeresult($result);

 

/**
* This event allows you to modify post data displayed in the MCP
*
* @event core.mcp_get_post_data_after
* @var array post_ids Array with post ids that have been fetched
* @var mixed acl_list Either false or an array with permission strings to check
* @var bool read_tracking Whether or not to take last mark read time into account
* @var array rowset The array of posts to be returned
* @since 3.2.10-RC1
* @since 3.3.1-RC1
*/
$vars = [
'post_ids',
'acl_list',
'read_tracking',
'rowset',
];
extract($phpbb_dispatcher->trigger_event('core.mcp_get_post_data_after', compact($vars)));


return $rowset;
}


return $rowset;
}