mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user