diff options
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
| -rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index e245eea069..c98be241e9 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -33,6 +33,7 @@ class acp_bbcodes  		// Set up general vars  		$action	= request_var('action', '');  		$bbcode_id = request_var('bbcode', 0); +		$submit = $request->is_set_post('submit');  		$this->tpl_name = 'acp_bbcodes';  		$this->page_title = 'ACP_BBCODES'; @@ -40,6 +41,11 @@ class acp_bbcodes  		add_form_key($form_key); +		if ($submit && !check_form_key($form_key)) +		{ +			trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING); +		} +  		// Set up mode-specific vars  		switch ($action)  		{ @@ -364,7 +370,7 @@ class acp_bbcodes  		*  		* @event core.acp_bbcodes_display_form  		* @var	string	action			Type of the action: modify|create -		* @var	string	sql_ary			The SQL array to get custom bbcode data +		* @var	array	sql_ary			The SQL array to get custom bbcode data  		* @var	array	template_data	Array with form template data  		* @var	string	u_action		The u_action link  		* @since 3.1.0-a3  | 
