From 0cfd1df8469e7ceb2027332f8eaf418b1a616772 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 18 Feb 2013 12:38:35 +0000 Subject: [PATCH] Flatten $page array before expand templates --- src/messenger/webim/libs/expand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php index ed69f702..7cdfcdff 100644 --- a/src/messenger/webim/libs/expand.php +++ b/src/messenger/webim/libs/expand.php @@ -102,7 +102,8 @@ function expandtext($text) 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(); if (!is_dir("$basedir/$style")) { $style = "default";