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.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 06d5ef72..922010fd 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -15,6 +15,12 @@ function template_render($file, $data) {
}
}
+function shorten($str) {
+ if (strlen($str) < 50)
+ return $str;
+ return substr($str, 0, 47) . '...';
+}
+
function table_body($array) {
$html = "";
foreach ($array as $line) {