summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-08-22 19:32:54 +0200
committermsquare <msquare@notrademark.de>2016-08-22 19:32:54 +0200
commit3f4be08865296431d070e4386a252dac84d528ec (patch)
tree08ab8c245137dff544c7c928b4a924e604b41ece /includes/sys_template.php
parent14d20933f7dcbf6d4aab3ee2c6444a19c7afdfd6 (diff)
remove old update script
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index e9ed35ef..112bb483 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -7,7 +7,7 @@ $themes = array(
'3' => "Engelsystem 32c3",
"2" => "Engelsystem cccamp15",
"0" => "Engelsystem light",
- "1" => "Engelsystem dark"
+ "1" => "Engelsystem dark"
);
/**
@@ -86,8 +86,7 @@ function toolbar_dropdown($glyphicon, $label, $submenu, $class = '') {
function toolbar_popover($glyphicon, $label, $content, $class = '') {
$id = md5(microtime() . $glyphicon . $label);
return '<li class="dropdown messages ' . $class . '">
- <a id="' . $id . '" href="#" tabindex="0">' . ($glyphicon != '' ? '<span class="glyphicon glyphicon-' . $glyphicon . '"></span> ' : '')
- . $label . ' <span class="caret"></span></a>
+ <a id="' . $id . '" href="#" tabindex="0">' . ($glyphicon != '' ? '<span class="glyphicon glyphicon-' . $glyphicon . '"></span> ' : '') . $label . ' <span class="caret"></span></a>
<script type="text/javascript">
$(function(){
$("#' . $id . '").popover({
@@ -416,9 +415,8 @@ function template_render($file, $data) {
$template = str_replace("%" . $name . "%", $content, $template);
}
return $template;
- } else {
- die('Cannot find template file &laquo;' . $file . '&raquo;.');
}
+ engelsystem_error("Cannot find template file &laquo;" . $file . "&raquo;.");
}
function shorten($str) {