]> source.dussan.org Git - nextcloud-server.git/commitdiff
init language object before using it
authorGeorg Ehrke <georg@ownCloud.com>
Wed, 12 Jun 2013 07:40:13 +0000 (09:40 +0200)
committerGeorg Ehrke <georg@ownCloud.com>
Wed, 12 Jun 2013 07:40:13 +0000 (09:40 +0200)
settings/ajax/removeuser.php

index bf3a34f1472ffae747cc165f24af756af3a0a2e9..8732c6518a8194bc6d6f792494b54bab14f71d1e 100644 (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") )));
 }