1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 05:34:01 +02:00

Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/10563] Show deactivated styles below active styles in acp
This commit is contained in:
Oleg Pudeyev
2012-01-06 02:46:52 -05:00
3 changed files with 10 additions and 0 deletions

View File

@@ -264,6 +264,7 @@ version = {VERSION}
{
case 'style':
$sql_from = STYLES_TABLE;
$sql_sort = 'style_active DESC, ' . $sql_sort;
$sql = 'SELECT user_style, COUNT(user_style) AS style_count
FROM ' . USERS_TABLE . '
@@ -348,6 +349,8 @@ version = {VERSION}
'NAME' => $row[$mode . '_name'],
'STYLE_COUNT' => ($mode == 'style' && isset($style_count[$row['style_id']])) ? $style_count[$row['style_id']] : 0,
'S_INACTIVE' => ($mode == 'style' && !$row['style_active']) ? true : false,
)
);
}