summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/template.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/template.php b/inc/template.php
index bb2a52352..233ded96b 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -50,13 +50,12 @@ function tpl_content(){
global $SUF;
global $SUM;
global $IDX;
- global $lang;
switch($ACT){
case 'show':
html_show();
break;
- case $lang['btn_preview']:
+ case 'preview':
html_edit($TEXT);
html_show($TEXT);
break;
@@ -98,7 +97,7 @@ function tpl_content(){
html_register();
break;
default:
- print "Uhm... Where am I? This shouldn't happen";
+ msg("Failed to handle command: ".hsc($ACT),-1);
}
}