diff options
| author | winter | 2025-01-18 20:02:39 +0000 |
|---|---|---|
| committer | winter | 2025-01-18 20:02:39 +0000 |
| commit | 66bdcf04f431d615b5fac93e7677e7304888e90c (patch) | |
| tree | d75f1b299e8ed2ff8d2fd6ccd42185cfb06b6729 /misc/render_template.php | |
| parent | 00ab9734e880219fa68fed98cefda5ce12958e4b (diff) | |
implement settings editor page
Diffstat (limited to 'misc/render_template.php')
| -rw-r--r-- | misc/render_template.php | 5 |
1 files changed, 3 insertions, 2 deletions
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() { |
