summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2012-09-04 12:48:42 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2012-09-04 12:48:42 +0300
commit83575a44360357dbbace4038afff220c5aa3a36d (patch)
tree702bc12db29540f9b398701e8379c9c7202eba32
parent04033585b04f7811d036c19d56408ff97171e0c9 (diff)
downloadnextcloud-server-83575a44360357dbbace4038afff220c5aa3a36d.tar.gz
nextcloud-server-83575a44360357dbbace4038afff220c5aa3a36d.zip
Update settings/ajax/creategroup.php
$l->t added to error messages
-rw-r--r--settings/ajax/creategroup.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/creategroup.php b/settings/ajax/creategroup.php
index 1307e18559a..83733ac4d2d 100644
--- a/settings/ajax/creategroup.php
+++ b/settings/ajax/creategroup.php
@@ -6,7 +6,7 @@ OCP\JSON::callCheck();
// Check if we are a user
if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )) {
- OC_JSON::error(array("data" => array( "message" => "Authentication error" )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Authentication error") )));
exit();
}
@@ -16,7 +16,7 @@ $groupname = $_POST["groupname"];
// Does the group exist?
if( in_array( $groupname, OC_Group::getGroups())) {
- OC_JSON::error(array("data" => array( "message" => "Group already exists" )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Group already exists") )));
exit();
}
@@ -25,5 +25,5 @@ if( OC_Group::createGroup( $groupname )) {
OC_JSON::success(array("data" => array( "groupname" => $groupname )));
}
else{
- OC_JSON::error(array("data" => array( "message" => "Unable to add group" )));
+ OC_JSON::error(array("data" => array( "message" => $l->t("Unable to add group") )));
}