diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index fcd18a199c..05725557d3 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -94,6 +94,7 @@
  • [Change] Make utf8_htmlspecialchars not pass its argument by reference (Bug #21885)
  • [Fix] Bring the PostgreSQL backup system back to working order (Bug #22385)
  • [Change] Sort the tables at the database table backup screen
  • +
  • [Fix] Update correct theme for cached styles in style.php (Bug #25805)
  • 1.ii. Changes since 3.0.0

    diff --git a/phpBB/style.php b/phpBB/style.php index 599434d087..cb2bcff115 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -95,7 +95,7 @@ if ($id) $user = array('user_id' => ANONYMOUS); } - $sql = 'SELECT s.style_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path + $sql = 'SELECT s.style_id, c.theme_id, c.theme_data, c.theme_path, c.theme_name, c.theme_mtime, i.*, t.template_path FROM ' . STYLES_TABLE . ' s, ' . STYLES_TEMPLATE_TABLE . ' t, ' . STYLES_THEME_TABLE . ' c, ' . STYLES_IMAGESET_TABLE . ' i WHERE s.style_id = ' . $id . ' AND t.template_id = s.template_id @@ -193,7 +193,7 @@ if ($id) ); $sql = 'UPDATE ' . STYLES_THEME_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . " - WHERE theme_id = $id"; + WHERE theme_id = {$theme['theme_id']}"; $db->sql_query($sql); $cache->destroy('sql', STYLES_THEME_TABLE);