diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2008-04-28 17:13:50 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2008-04-28 17:13:50 +0000 |
commit | 4e76553c2284237e9024ddfd1a0be8edb0651af7 (patch) | |
tree | 7d51b1b4f99937506eeff0862e6938a558543a02 /phpBB/includes | |
parent | c9d4d3c9558b71bf5c9c79add9b0992bf4836366 (diff) | |
download | forums-4e76553c2284237e9024ddfd1a0be8edb0651af7.tar forums-4e76553c2284237e9024ddfd1a0be8edb0651af7.tar.gz forums-4e76553c2284237e9024ddfd1a0be8edb0651af7.tar.bz2 forums-4e76553c2284237e9024ddfd1a0be8edb0651af7.tar.xz forums-4e76553c2284237e9024ddfd1a0be8edb0651af7.zip |
Thanks NBBN
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8530 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 88850d59b3..dd5255f755 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -695,6 +695,15 @@ parse_css_file = {PARSE_CSS_FILE} { trigger_error($user->lang['NO_TEMPLATE'] . adm_back_link($this->u_action), E_USER_WARNING); } + + if ($save_changes && !check_form_key('acp_styles')) + { + trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING); + } + else if (!$save_changes) + { + add_form_key('acp_styles'); + } // save changes to the template if the user submitted any if ($save_changes && $template_file) |