summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-07-18 21:38:53 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-07-19 11:44:16 +0200
commit3a1e4602492cec1c8f3d2aabab2c866022f43bf1 (patch)
treec367c1ce15f957a1e9a0879b875e8d635883280e /includes/sys_template.php
parent04217834fa4e6f94fec0836a80ea5526b8ebc9bc (diff)
Changed $_GET, $_POST and $_REQUEST to use the Request object
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 7aa458b8..1d3943b7 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -335,11 +335,11 @@ function table_buttons($buttons = [])
/**
* Load and render template
*
- * @param string $file
- * @param string $data
+ * @param string $file
+ * @param string[] $data
* @return string
*/
-function template_render($file, $data)
+function template_render($file, $data = [])
{
if (file_exists($file)) {
$template = file_get_contents($file);