diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-28 12:58:58 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-28 12:58:58 +0200 |
commit | 75dd91412bc565afbda8ab7033ee1d6a14050dd0 (patch) | |
tree | f77b5759f2eaa04975dc477eae513f44c1d0ef37 /phpBB/includes/mcp | |
parent | cf93c6503aa1512a70250fbf70cd03d6a3daa3ae (diff) | |
parent | 4119be5a3db462bdc45acf91a8d55d3129490f6f (diff) | |
download | forums-75dd91412bc565afbda8ab7033ee1d6a14050dd0.tar forums-75dd91412bc565afbda8ab7033ee1d6a14050dd0.tar.gz forums-75dd91412bc565afbda8ab7033ee1d6a14050dd0.tar.bz2 forums-75dd91412bc565afbda8ab7033ee1d6a14050dd0.tar.xz forums-75dd91412bc565afbda8ab7033ee1d6a14050dd0.zip |
Merge pull request #3469 from brunoais/ticket/13672
[ticket/13672] Allow changing the data from the user-submitted report
* brunoais/ticket/13672:
[ticket/13672] Removed bogus sting concatenation
[ticket/13672] BUMP version to 3.1.5-dev
[ticket/13672] Allow changing the data from the user-submitted report
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_reports.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 3cd142ba43..fa2fed842f 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -113,6 +113,26 @@ class mcp_reports $report = $db->sql_fetchrow($result); $db->sql_freeresult($result); + /** + * Allow changing the data obtained from the user-submitted report. + * + * @event core.mcp_reports_report_details_query_after + * @var array sql_ary The array in the format of the query builder with the query that had been executted + * @var mixed forum_id The forum_id, the number in the f GET parameter + * @var int post_id The post_id of the report being viewed (if 0, it is meaningless) + * @var int report_id The report_id of the report being viewed + * @var int report The query's resulting row. + * @since 3.1.5-RC1 + */ + $vars = array( + 'sql_ary', + 'forum_id', + 'post_id', + 'report_id', + 'report', + ); + extract($phpbb_dispatcher->trigger_event('core.mcp_reports_report_details_query_after', compact($vars))); + if (!$report) { trigger_error('NO_REPORT'); |