Flatten $page array before expand templates

This commit is contained in:
Dmitriy Simushev 2013-02-18 12:38:35 +00:00
parent 54d5cbdce8
commit 0cfd1df846

View File

@ -102,7 +102,8 @@ function expandtext($text)
function expand($basedir, $style, $filename) function expand($basedir, $style, $filename)
{ {
global $expand_include_path, $current_style; global $expand_include_path, $current_style, $page;
$page = array_flatten_recursive($page);
start_html_output(); start_html_output();
if (!is_dir("$basedir/$style")) { if (!is_dir("$basedir/$style")) {
$style = "default"; $style = "default";