From 724d3fdbee87c004d494e871210c559c361db049 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 2 Sep 2010 15:58:53 +0000
Subject: [PATCH] - Patch #832624 by Max K: unused variable () in function
 init_theme().

---
 includes/theme.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/includes/theme.inc b/includes/theme.inc
index a696117cf86f..f5731693f60b 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -95,8 +95,8 @@ function drupal_theme_initialize() {
   $base_theme = array();
   $ancestor = $theme;
   while ($ancestor && isset($themes[$ancestor]->base_theme)) {
-    $base_theme[] = $new_base_theme = $themes[$themes[$ancestor]->base_theme];
     $ancestor = $themes[$ancestor]->base_theme;
+    $base_theme[] = $themes[$ancestor];
   }
   _drupal_theme_initialize($themes[$theme], array_reverse($base_theme));
 
-- 
GitLab