mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Make sure a style set to "default" is also always active. ;) (Bug #37475)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9152 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
353b7edc9a
commit
3cc422b22c
1 changed files with 6 additions and 0 deletions
|
@ -2176,6 +2176,12 @@ parse_css_file = {PARSE_CSS_FILE}
|
|||
$style_default = request_var('style_default', 0);
|
||||
$store_db = request_var('store_db', 0);
|
||||
|
||||
// If the admin selected the style to be the default style, but forgot to activate it... we will do it for him
|
||||
if ($style_default)
|
||||
{
|
||||
$style_active = 1;
|
||||
}
|
||||
|
||||
$sql = "SELECT {$mode}_id, {$mode}_name
|
||||
FROM $sql_from
|
||||
WHERE {$mode}_id <> $style_id
|
||||
|
|
Loading…
Add table
Reference in a new issue