From ea67f14490d599a3c1765169cb2a6b11de4250aa Mon Sep 17 00:00:00 2001 From: andi <andi@splitbrain.org> Date: Fri, 11 Mar 2005 12:24:32 +0100 Subject: [PATCH] repaired preview darcs-hash:20050311112432-9977f-f653e30f454bd6127647ca3ea3bbdacb6bd4dd8d.gz --- inc/template.php | 5 ++--- 1 file 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); } } -- GitLab