diff options
author | andi <andi@splitbrain.org> | 2005-04-20 21:30:03 +0200 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-04-20 21:30:03 +0200 |
commit | cf81b04aec397fc5abc6ec1078d5f77df2b72770 (patch) | |
tree | 492dbb31b707f271d9ce221b0c74e6fdd71a1f00 /inc | |
parent | 1d47afe198e9605cb1a0bb7a80b16df1256f82ad (diff) | |
download | rpg-cf81b04aec397fc5abc6ec1078d5f77df2b72770.tar.gz rpg-cf81b04aec397fc5abc6ec1078d5f77df2b72770.tar.bz2 |
fixed action on localized buttons
darcs-hash:20050420193003-9977f-7270a55bba706dbdde401918b7fa342616392ba3.gz
Diffstat (limited to 'inc')
-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', |