From 66bdcf04f431d615b5fac93e7677e7304888e90c Mon Sep 17 00:00:00 2001 From: winter Date: Sat, 18 Jan 2025 20:02:39 +0000 Subject: implement settings editor page --- misc/render_template.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'misc/render_template.php') diff --git a/misc/render_template.php b/misc/render_template.php index 294fc16..1b64f0c 100644 --- a/misc/render_template.php +++ b/misc/render_template.php @@ -12,9 +12,10 @@ function render_template(string $templateName, array $args = []) { global $__spooky_magical_template_global_state; $__spooky_magical_template_global_state['slotParentArgs'] = $__spooky_magical_template_global_state['slotArgs'] ?? null; $__spooky_magical_template_global_state['slotArgs'] = $args; - foreach ($args as $key => $value) { - ${$key} = $value; + foreach ($args as $__template_key => $__template_value) { + ${$__template_key} = $__template_value; } + unset($__template_key, $__template_value); if (!function_exists('slot')) { function slot() { -- cgit v1.3