summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-07-13 14:29:40 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-07-13 14:29:40 +0200
commiteeff48ad97b42f16b80a5fb17553a409b94592c8 (patch)
tree6cb965b4b7c1993a3c699832a5d22c35b61cfb9f /includes/sys_template.php
parenta476beafe310aa8b291996c06d876e31975deb7d (diff)
#4 import shift names
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) {