summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index bcf462d7..a659a7f3 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -322,28 +322,6 @@ function table_buttons($buttons = [])
}
/**
- * Load and render template
- *
- * @param string $file
- * @param string[] $data
- * @return string
- */
-function template_render($file, $data = [])
-{
- if (file_exists($file)) {
- $template = file_get_contents($file);
- if (is_array($data)) {
- foreach ($data as $name => $content) {
- $template = str_replace('%' . $name . '%', $content, $template);
- }
- }
- return $template;
- }
- engelsystem_error('Cannot find template file «' . $file . '».');
- return '';
-}
-
-/**
* @param string $str
* @param int $length
* @return string