浏览代码

Merge pull request #1247 from live627/ca

WrapAction() won't assign a sub template if funtion is set
Arantor 10 年之前
父节点
当前提交
efce9dca89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Sources/Themes.php

+ 1 - 1
Sources/Themes.php

@@ -1543,7 +1543,7 @@ function WrapAction()
 		$settings['catch_action']['function']();
 	}
 	// And finally, the main sub template ;).
-	elseif (isset($settings['catch_action']['sub_template']))
+	if (isset($settings['catch_action']['sub_template']))
 		$context['sub_template'] = $settings['catch_action']['sub_template'];
 }