Merge pull request #519 from glaszig/fix/markup

dhcp page maintenance
This commit is contained in:
Bill Zimmerman
2020-03-06 20:05:25 +01:00
committed by GitHub
7 changed files with 266 additions and 272 deletions

View File

@@ -271,15 +271,15 @@ function ConvertToSecurity($security)
/**
* Renders a simple PHP template
*/
function renderTemplate($name, $data = [])
function renderTemplate($name, $__template_data = [])
{
$file = realpath(dirname(__FILE__) . "/../templates/$name.php");
if (!file_exists($file)) {
return "template $name ($file) not found";
}
if (is_array($data)) {
extract($data);
if (is_array($__template_data)) {
extract($__template_data);
}
ob_start();