mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
- only a slight change...
- re-set forum_style too git-svn-id: file:///svn/phpbb/trunk@5551 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
43e7ac547c
commit
107297f1e6
1 changed files with 11 additions and 1 deletions
|
@ -152,6 +152,11 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||||
SET user_style = ' . $config['default_style'] . "
|
SET user_style = ' . $config['default_style'] . "
|
||||||
WHERE user_style = $style_id";
|
WHERE user_style = $style_id";
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
|
$sql = 'UPDATE ' . FORUMS_TABLE . '
|
||||||
|
SET forum_style = 0
|
||||||
|
WHERE forum_style = ' . $style_id;
|
||||||
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -530,7 +535,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||||
$dp = opendir($dir);
|
$dp = opendir($dir);
|
||||||
while ($file = readdir($dp))
|
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");
|
$dp2 = opendir("$dir/$file");
|
||||||
while ($file2 = readdir($dp2))
|
while ($file2 = readdir($dp2))
|
||||||
|
@ -670,6 +675,11 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||||
SET user_style = $new_id
|
SET user_style = $new_id
|
||||||
WHERE user_style = $style_id";
|
WHERE user_style = $style_id";
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
|
|
||||||
|
$sql = 'UPDATE ' . FORUMS_TABLE . "
|
||||||
|
SET forum_style = $new_id
|
||||||
|
WHERE forum_style = $style_id";
|
||||||
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue