Merge pull request #3681 from owncloud/fix_ajax_removeuser.php

Init language object before using it
This commit is contained in:
Morris Jobke 2013-06-12 04:23:52 -07:00
commit a39ecd5ea9

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