aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2008-05-02 14:44:41 +0000
committerHenry Sudhof <kellanved@phpbb.com>2008-05-02 14:44:41 +0000
commitebb801ebff61c7443b70a2d6d4f7dbfc03028bbd (patch)
tree6fdad0b57e6c7edd34064657ac5f785eaa6692f8 /phpBB/includes
parent4b9077a58b26dff7be421f1808b13309ba6da4a8 (diff)
downloadforums-ebb801ebff61c7443b70a2d6d4f7dbfc03028bbd.tar
forums-ebb801ebff61c7443b70a2d6d4f7dbfc03028bbd.tar.gz
forums-ebb801ebff61c7443b70a2d6d4f7dbfc03028bbd.tar.bz2
forums-ebb801ebff61c7443b70a2d6d4f7dbfc03028bbd.tar.xz
forums-ebb801ebff61c7443b70a2d6d4f7dbfc03028bbd.zip
merge
git-svn-id: file:///svn/phpbb/trunk@8534 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-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 2f2649575b..538114de6a 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)