From 18829381465e518a65e285578ee67a3daf88de98 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 20 Oct 2006 18:41:48 +0200 Subject: used named submitbuttons instead of localized labels darcs-hash:20061020164148-7ad00-6bb857729d9004b0f9b865410c1c666e07cc03aa.gz --- inc/actions.php | 10 +--------- inc/html.php | 14 +++++++------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/inc/actions.php b/inc/actions.php index e3ddfecc0..4eb857be0 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -140,14 +140,6 @@ function act_clean($act){ list($act) = array_keys($act); } - //handle localized buttons - if($act == $lang['btn_save']) $act = 'save'; - if($act == $lang['btn_preview']) $act = 'preview'; - if($act == $lang['btn_cancel']) $act = 'show'; - if($act == $lang['btn_recover']) $act = 'recover'; - if($act == $lang['btn_draftdel']) $act = 'draftdel'; - - //remove all bad chars $act = strtolower($act); $act = preg_replace('/[^a-z_]+/','',$act); @@ -172,7 +164,7 @@ function act_clean($act){ if(!in_array($act,array('login','logout','register','save','edit','draft', 'preview','search','show','check','index','revisions', 'diff','recent','backlink','admin','subscribe', - 'unsubscribe','profile','resendpwd','recover', + 'unsubscribe','profile','resendpwd','recover','wordblock', 'draftdel',)) && substr($act,0,7) != 'export_' ) { msg('Command unknown: '.htmlspecialchars($act),-1); return 'show'; diff --git a/inc/html.php b/inc/html.php index ae6e53729..169b056ea 100644 --- a/inc/html.php +++ b/inc/html.php @@ -297,9 +297,9 @@ function html_draft(){
- - - + + + " /> - - + +



@@ -1121,8 +1121,8 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed?
- - + +
-- cgit v1.2.3