diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-21 19:23:34 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-03-21 19:23:34 +0000 |
| commit | 21de871aff0392803dd98ab8a895fabac35f4219 (patch) | |
| tree | aa052fe762be977462e92b755e59dacb0c4ea559 /phpBB/includes/acp/acp_styles.php | |
| parent | 44c60cff4de351523f950ca7fac114d1a2769b82 (diff) | |
| download | forums-21de871aff0392803dd98ab8a895fabac35f4219.tar forums-21de871aff0392803dd98ab8a895fabac35f4219.tar.gz forums-21de871aff0392803dd98ab8a895fabac35f4219.tar.bz2 forums-21de871aff0392803dd98ab8a895fabac35f4219.tar.xz forums-21de871aff0392803dd98ab8a895fabac35f4219.zip | |
- a bunch of bugfixes. :P
git-svn-id: file:///svn/phpbb/trunk@5678 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_styles.php')
| -rw-r--r-- | phpBB/includes/acp/acp_styles.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index c5dc6ae154..d7fe6b4ff7 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -465,6 +465,7 @@ pagination_sep = \'{PAGINATION_SEP}\' 'polls' => array( 'poll_left', 'poll_center', 'poll_right',), ); + foreach ($imglist as $category => $img_ary) { if (in_array($imgname, $img_ary)) @@ -492,7 +493,7 @@ pagination_sep = \'{PAGINATION_SEP}\' $imgpath = preg_replace('/^([^\/]+\/)/', '{LANG}/', $imgpath) . $imgheight . $imgwidth; $sql = 'UPDATE ' . STYLES_IMAGE_TABLE . " - SET $imgname = '$imgpath' + SET $imgname = '" . $db->sql_escape($imgpath) . "' WHERE imageset_id = $style_id"; $db->sql_query($sql); @@ -1801,27 +1802,27 @@ pagination_sep = \'{PAGINATION_SEP}\' global $config, $db, $user; $element_ary = array('template', 'theme', 'imageset'); - + if (!$name) { - $error[] = $user->lang[$l_type . '_ERR_STYLE_NAME']; + $error[] = $user->lang['STYLE_ERR_STYLE_NAME']; } // Check if the character set is allowed if (!preg_match('/^[a-z0-9_\-\+ ]+$/i', $name)) { - $error[] = $user->lang[$l_type . '_ERR_NAME_CHARS']; + $error[] = $user->lang['STYLE_ERR_NAME_CHARS']; } // Check length settings if (strlen($name) > 30) { - $error[] = $user->lang[$l_type . '_ERR_NAME_LONG']; + $error[] = $user->lang['STYLE_ERR_NAME_LONG']; } if (strlen($copyright) > 60) { - $error[] = $user->lang[$l_type . '_ERR_COPY_LONG']; + $error[] = $user->lang['STYLE_ERR_COPY_LONG']; } // Check if the name already exist @@ -1834,7 +1835,7 @@ pagination_sep = \'{PAGINATION_SEP}\' if ($row) { - $error[] = $user->lang[$l_type . '_ERR_NAME_EXIST']; + $error[] = $user->lang['STYLE_ERR_NAME_EXIST']; } if (sizeof($error)) |
