mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Use OCP\JSON instead of OC_JSON
This commit is contained in:
parent
8a8800203e
commit
ed1a23c9a2
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
OCP\JSON::callCheck();
|
||||
OC_JSON::checkLoggedIn();
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAdminUser();
|
||||
|
||||
$l=OC_L10N::get('core');
|
||||
|
|
@ -12,7 +12,7 @@ $groupname = $_POST["groupname"];
|
|||
// TODO : make changes to the API to allow this.
|
||||
// setGroupname doesnt exist yet.
|
||||
if(OC_Group::setGroupname($groupname)) {
|
||||
OC_JSON::success(
|
||||
OCP\JSON::success(
|
||||
array("data" => array(
|
||||
"message" => $l->t('Group name has been changed.'),
|
||||
"groupname" => $groupname,
|
||||
|
|
@ -20,5 +20,5 @@ if(OC_Group::setGroupname($groupname)) {
|
|||
)
|
||||
);
|
||||
} else {
|
||||
OC_JSON::error(array("data" => array( "message" => $l->t("Unable to change group name"))));
|
||||
OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to change group name"))));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue