Browse Source

Fix based_on vars

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
2910427c5c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/Subs-Themes.php

+ 2 - 1
Sources/Subs-Themes.php

@@ -332,7 +332,8 @@ function theme_install($to_install = array())
 			// Found the based on theme info, add it to the current one being installed.
 			if (is_array($temp))
 			{
-				$context['to_install'] = $temp + $context['to_install'];
+				$context['to_install']['base_theme_url'] = $temp['theme_url'];
+				$context['to_install']['base_theme_dir'] = $temp['theme_dir'];
 
 				if (empty($explicit_images) && !empty($context['to_install']['base_theme_url']))
 					$context['to_install']['theme_url'] = $context['to_install']['base_theme_url'];