mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
Flatten $page array before expand templates
This commit is contained in:
parent
54d5cbdce8
commit
0cfd1df846
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user