mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +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)
|
||||
{
|
||||
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";
|
||||
|
Loading…
Reference in New Issue
Block a user