Skip to content

Commit

Permalink
array_keys should be done when getBasicThemeInfos is called, not insi…
Browse files Browse the repository at this point in the history
…de it

Signed-off-by: emanuele <emanuele45@gmail.com>
  • Loading branch information
emanuele45 committed Nov 22, 2014
1 parent c9ba71e commit 47d1edd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/admin/ManageLanguages.controller.php
Expand Up @@ -508,7 +508,7 @@ public function action_downloadlang()

// Now we have the id_theme we can get the pretty description.
if (!empty($themes))
$context['themes'] = getBasicThemeInfos($themes);
$context['theme_names'] = getBasicThemeInfos($themes);
}

// Before we go to far can we make anything writable, eh, eh?
Expand Down
4 changes: 2 additions & 2 deletions sources/subs/Themes.subs.php
Expand Up @@ -163,13 +163,13 @@ function getBasicThemeInfos($themes)
AND variable = {string:name}
AND id_theme IN ({array_int:theme_list})',
array(
'theme_list' => array_keys($themes),
'theme_list' => $themes,
'no_member' => 0,
'name' => 'name',
)
);
while ($row = $db->fetch_assoc($request))
$themelist[$themes[$row['id_theme']]] = $row['value'];
$themelist[$row['id_theme']] = $row['value'];

$db->free_result($request);

Expand Down

0 comments on commit 47d1edd

Please sign in to comment.