Skip to content
Snippets Groups Projects
Commit cf81b04a authored by andi's avatar andi
Browse files

fixed action on localized buttons

darcs-hash:20050420193003-9977f-7270a55bba706dbdde401918b7fa342616392ba3.gz
parent 1d47afe1
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment