瀏覽代碼

Fix based_on vars

Signed-off-by: Suki <suki@missallsunday.com>
Suki 11 年之前
父節點
當前提交
2910427c5c
共有 1 個文件被更改,包括 2 次插入1 次删除
  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'];