diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-12 17:46:39 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-12 17:46:39 +0000 |
commit | 107297f1e68a3b0b3ca021ecab261615a5d1d986 (patch) | |
tree | 2616b1a465bab9d5c6d479ba8d21f94466dadfe0 /phpBB/includes | |
parent | 43e7ac547c9246f796eba4dc011ededa517f5c1d (diff) | |
download | forums-107297f1e68a3b0b3ca021ecab261615a5d1d986.tar forums-107297f1e68a3b0b3ca021ecab261615a5d1d986.tar.gz forums-107297f1e68a3b0b3ca021ecab261615a5d1d986.tar.bz2 forums-107297f1e68a3b0b3ca021ecab261615a5d1d986.tar.xz forums-107297f1e68a3b0b3ca021ecab261615a5d1d986.zip |
- only a slight change...
- re-set forum_style too
git-svn-id: file:///svn/phpbb/trunk@5551 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 565e9ba489..3b14c3d6aa 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -152,6 +152,11 @@ pagination_sep = \'{PAGINATION_SEP}\' SET user_style = ' . $config['default_style'] . " WHERE user_style = $style_id"; $db->sql_query($sql); + + $sql = 'UPDATE ' . FORUMS_TABLE . ' + SET forum_style = 0 + WHERE forum_style = ' . $style_id; + $db->sql_query($sql); } break; } @@ -530,7 +535,7 @@ pagination_sep = \'{PAGINATION_SEP}\' $dp = opendir($dir); while ($file = readdir($dp)) { - if (!is_file($dir . $file) && !is_link($dir . $file) && $file{0} != '.' && strtoupper($file) != 'CVS' && !sizeof($imagesetlist['lang'])) + if (!is_file($dir . '/' . $file) && !is_link($dir . '/' . $file) && $file{0} != '.' && strtoupper($file) != 'CVS' && !sizeof($imagesetlist['lang'])) { $dp2 = opendir("$dir/$file"); while ($file2 = readdir($dp2)) @@ -670,6 +675,11 @@ pagination_sep = \'{PAGINATION_SEP}\' SET user_style = $new_id WHERE user_style = $style_id"; $db->sql_query($sql); + + $sql = 'UPDATE ' . FORUMS_TABLE . " + SET forum_style = $new_id + WHERE forum_style = $style_id"; + $db->sql_query($sql); } else { |