diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-02 21:22:52 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-02 21:22:52 +0200 |
| commit | d06adb06e907e31918130a6ef010b73d454f396c (patch) | |
| tree | 63494984f3d28c97faa027349b608596201e906e /phpBB | |
| parent | e85afc6b83559742e87d85e7a385bf08b27a8c25 (diff) | |
| download | forums-d06adb06e907e31918130a6ef010b73d454f396c.tar forums-d06adb06e907e31918130a6ef010b73d454f396c.tar.gz forums-d06adb06e907e31918130a6ef010b73d454f396c.tar.bz2 forums-d06adb06e907e31918130a6ef010b73d454f396c.tar.xz forums-d06adb06e907e31918130a6ef010b73d454f396c.zip | |
[feature/php-events] Remove core.mcp_check_ids and invalid comment.
We couldn't find a reason for this event, as it even doesn't have any arguments
The comment is not correct anymore either. Since 3.1global announcements still
have a valid forum_id
PHPBB3-9550
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/mcp.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/mcp.php b/phpBB/mcp.php index b5cfa99d4c..730af65e3d 100644 --- a/phpBB/mcp.php +++ b/phpBB/mcp.php @@ -823,7 +823,7 @@ function mcp_sorting($mode, &$sort_days, &$sort_key, &$sort_dir, &$sort_by_sql, */ function check_ids(&$ids, $table, $sql_id, $acl_list = false, $single_forum = false) { - global $db, $auth, $phpbb_dispatcher; + global $db, $auth; if (!is_array($ids) || empty($ids)) { @@ -887,9 +887,5 @@ function check_ids(&$ids, $table, $sql_id, $acl_list = false, $single_forum = fa return false; } - // If forum id is false and ids populated we may have only global announcements selected (returning 0 because of (int) $forum_id) - - $phpbb_dispatcher->dispatch('core.mcp_check_ids'); - return ($single_forum === false) ? true : (int) $forum_id; } |
