blob: 1872d7f6c89bada98995a04f538c7227ca3fb760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
admin_gatekeeper();
$result = false;
$user = get_input("user");
$user = get_entity($user);
if($user instanceof ElggUser){
unset($user->translation_editor);
$result = true;
}
if(!$result){
register_error(elgg_echo("translation_editor:action:unmake_translation_editor:error"));
} else {
system_message(elgg_echo("translation_editor:action:unmake_translation_editor:success"));
}
forward(REFERER);
|