aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_styles.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-04-28 17:13:50 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-04-28 17:13:50 +0000
commit4e76553c2284237e9024ddfd1a0be8edb0651af7 (patch)
tree7d51b1b4f99937506eeff0862e6938a558543a02 /phpBB/includes/acp/acp_styles.php
parentc9d4d3c9558b71bf5c9c79add9b0992bf4836366 (diff)
downloadforums-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/acp/acp_styles.php')
-rw-r--r--phpBB/includes/acp/acp_styles.php9
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)