mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Fix: evaluate pluginName in renderTemplate
This commit is contained in:
parent
b33ac6ffa3
commit
4e71a6e753
@ -544,7 +544,7 @@ function ConvertToSecurity($security)
|
|||||||
*/
|
*/
|
||||||
function renderTemplate($name, $__template_data = [], $pluginName = null)
|
function renderTemplate($name, $__template_data = [], $pluginName = null)
|
||||||
{
|
{
|
||||||
if (isset($pluginName)) {
|
if (is_string($pluginName)) {
|
||||||
$file = realpath(dirname(__FILE__) . "/../plugins/$pluginName/templates/$name.php");
|
$file = realpath(dirname(__FILE__) . "/../plugins/$pluginName/templates/$name.php");
|
||||||
} else {
|
} else {
|
||||||
$file = realpath(dirname(__FILE__) . "/../templates/$name.php");
|
$file = realpath(dirname(__FILE__) . "/../templates/$name.php");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user