init language object before using it

This commit is contained in:
Georg Ehrke 2013-06-12 09:40:13 +02:00
parent b237d03791
commit a2fa91fdd5

View file

@ -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") )));
}