aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc/render_template.php
diff options
context:
space:
mode:
authorwinter2025-01-18 20:02:39 +0000
committerwinter2025-01-18 20:02:39 +0000
commit66bdcf04f431d615b5fac93e7677e7304888e90c (patch)
treed75f1b299e8ed2ff8d2fd6ccd42185cfb06b6729 /misc/render_template.php
parent00ab9734e880219fa68fed98cefda5ce12958e4b (diff)
implement settings editor page
Diffstat (limited to 'misc/render_template.php')
-rw-r--r--misc/render_template.php5
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() {