summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php10
1 files changed, 1 insertions, 9 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';