diff options
author | Forumhulp.com <info@forumhulp.com> | 2014-03-21 14:48:58 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-03-22 02:07:39 +0100 |
commit | 4051ab689f6b9765de6d6fb5a07ff67f1fb93302 (patch) | |
tree | 3225ac0cc4a71843fa9581425d21476901d014ca /phpBB | |
parent | 7f5d8becad864ad86e6172c07a6a5d56d91e5264 (diff) | |
download | forums-4051ab689f6b9765de6d6fb5a07ff67f1fb93302.tar forums-4051ab689f6b9765de6d6fb5a07ff67f1fb93302.tar.gz forums-4051ab689f6b9765de6d6fb5a07ff67f1fb93302.tar.bz2 forums-4051ab689f6b9765de6d6fb5a07ff67f1fb93302.tar.xz forums-4051ab689f6b9765de6d6fb5a07ff67f1fb93302.zip |
[ticket/12293] Add missing compact() call to phpBB/phpbb/log/log.php events.
PHPBB3-12293
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/log/log.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php index 62edc6a77f..68b023e244 100644 --- a/phpBB/phpbb/log/log.php +++ b/phpBB/phpbb/log/log.php @@ -308,7 +308,7 @@ class log implements \phpbb\log\log_interface * @since 3.1-A1 */ $vars = array('mode', 'user_id', 'log_ip', 'log_operation', 'log_time', 'additional_data', 'sql_ary'); - extract($this->dispatcher->trigger_event('core.add_log', $vars)); + extract($this->dispatcher->trigger_event('core.add_log', compact($vars))); // We didn't find a log_type, so we don't save it in the database. if (!isset($sql_ary['log_type'])) @@ -406,7 +406,7 @@ class log implements \phpbb\log\log_interface * @since 3.1-A1 */ $vars = array('mode', 'count_logs', 'limit', 'offset', 'forum_id', 'topic_id', 'user_id', 'log_time', 'sort_by', 'keywords', 'profile_url', 'log_type', 'sql_additional'); - extract($this->dispatcher->trigger_event('core.get_logs_modify_type', $vars)); + extract($this->dispatcher->trigger_event('core.get_logs_modify_type', compact($vars))); if ($log_type === false) { @@ -502,7 +502,7 @@ class log implements \phpbb\log\log_interface * @since 3.1-A1 */ $vars = array('row', 'log_entry_data'); - extract($this->dispatcher->trigger_event('core.get_logs_modify_entry_data', $vars)); + extract($this->dispatcher->trigger_event('core.get_logs_modify_entry_data', compact($vars))); $log[$i] = $log_entry_data; @@ -561,7 +561,7 @@ class log implements \phpbb\log\log_interface * @since 3.1-A1 */ $vars = array('log', 'topic_id_list', 'reportee_id_list'); - extract($this->dispatcher->trigger_event('core.get_logs_get_additional_data', $vars)); + extract($this->dispatcher->trigger_event('core.get_logs_get_additional_data', compact($vars))); if (sizeof($topic_id_list)) { |