diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-18 20:28:14 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-18 20:32:58 +0200 |
commit | 90ed6e734d7a8587e73fb0e37251982adc8d10ab (patch) | |
tree | 33d194b965d55e124fd06f2767299708d222332c /phpBB/includes/acp/acp_forums.php | |
parent | b32d5a3edf418e2c9cdfa8cbe027c9da7e31d2f6 (diff) | |
download | forums-90ed6e734d7a8587e73fb0e37251982adc8d10ab.tar forums-90ed6e734d7a8587e73fb0e37251982adc8d10ab.tar.gz forums-90ed6e734d7a8587e73fb0e37251982adc8d10ab.tar.bz2 forums-90ed6e734d7a8587e73fb0e37251982adc8d10ab.tar.xz forums-90ed6e734d7a8587e73fb0e37251982adc8d10ab.zip |
[feature/php-events] Fix acp_manage_forums_update_data_before and is_new_forum
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/acp/acp_forums.php')
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index 39bc7e39ad..c6dbf5eb9c 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -1036,17 +1036,14 @@ class acp_forums } unset($forum_data_sql['forum_password_unset']); - $is_new_forum = !isset($forum_data_sql['forum_id']); - /** * Remove invalid values from forum_data_sql that should not be updated * * @event core.acp_manage_forums_update_data_before * @var array forum_data Array with forum data * @var array forum_data_sql Array with data we are going to update - * @var bool is_new_forum Do we create a forum or update one - * If you want to overwrite this value, - * ensure to set forum_data_sql[forum_id] + * If forum_data_sql[forum_id] is set, we update + * that forum, otherwise a new one is created. * @since 3.1-A1 */ $vars = array('forum_data', 'forum_data_sql'); |