mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
init language object before using it
This commit is contained in:
parent
b237d03791
commit
a2fa91fdd5
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