Merge pull request #3681 from owncloud/fix_ajax_removeuser.php
Init language object before using it
This commit is contained in:
commit
a39ecd5ea9
1 changed files with 1 additions and 0 deletions
|
@ -21,5 +21,6 @@ if( OC_User::deleteUser( $username )) {
|
|||
OC_JSON::success(array("data" => array( "username" => $username )));
|
||||
}
|
||||
else{
|
||||
$l = OC_L10N::get('core');
|
||||
OC_JSON::error(array("data" => array( "message" => $l->t("Unable to delete user") )));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue