diff options
-rw-r--r-- | inc/actions.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/inc/actions.php b/inc/actions.php index be44471d4..9fb186b00 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -85,6 +85,11 @@ function act_clean($act){ global $lang; global $conf; + //handle localized buttons + if($act == $lang['btn_save']) $act = 'save'; + if($act == $lang['btn_preview']) $act = 'preview'; + if($act == $lang['btn_cancel']) $act = 'show'; + //remove all bad chars $act = strtolower($act); $act = preg_replace('/[^a-z_]+/','',$act); @@ -92,9 +97,6 @@ function act_clean($act){ if($act == 'register' && !$conf['openregister']) return 'show'; - if($act == $lang['btn_save']) $act = 'save'; - if($act == $lang['btn_preview']) $act = 'preview'; - if($act == $lang['btn_cancel']) $act = 'show'; if($act == 'export_html') $act = 'export_xhtml'; if(array_search($act,array('login','logout','register','save','edit', |