From 4e71a6e753a998a6dc2e8fa88694e04b7a8ce751 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 8 Nov 2024 03:31:22 -0800 Subject: [PATCH] Fix: evaluate pluginName in renderTemplate --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index dbfff494..c397f775 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -544,7 +544,7 @@ function ConvertToSecurity($security) */ function renderTemplate($name, $__template_data = [], $pluginName = null) { - if (isset($pluginName)) { + if (is_string($pluginName)) { $file = realpath(dirname(__FILE__) . "/../plugins/$pluginName/templates/$name.php"); } else { $file = realpath(dirname(__FILE__) . "/../templates/$name.php");