diff options
author | andi <andi@splitbrain.org> | 2005-03-11 12:24:32 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-03-11 12:24:32 +0100 |
commit | ea67f14490d599a3c1765169cb2a6b11de4250aa (patch) | |
tree | daef1a05934769f9b38ed6b81c6ffe24696b993f | |
parent | c6c0f8871bf5837f9a685ba7add9ec18a917b6bb (diff) | |
download | rpg-ea67f14490d599a3c1765169cb2a6b11de4250aa.tar.gz rpg-ea67f14490d599a3c1765169cb2a6b11de4250aa.tar.bz2 |
repaired preview
darcs-hash:20050311112432-9977f-f653e30f454bd6127647ca3ea3bbdacb6bd4dd8d.gz
-rw-r--r-- | inc/template.php | 5 |
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); } } |