get translations from settings, not core

This commit is contained in:
Arthur Schiwon 2014-04-16 17:33:56 +02:00
Родитель 2a8afb0ad9
Коммит cbcda49ee3
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4,13 +4,13 @@ OCP\JSON::callCheck();
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAdminUser();
$l=OC_L10N::get('core');
$l=OC_L10N::get('settings');
$groupname = $_POST["groupname"];
// Return Success story
// TODO : make changes to the API to allow this.
// setGroupname doesnt exist yet.
// setGroupname doesnt exist yet.
if(OC_Group::setGroupname($groupname)) {
OCP\JSON::success(
array("data" => array(

Просмотреть файл

@ -4,7 +4,7 @@ OCP\JSON::callCheck();
OC_JSON::checkAdminUser();
$groupname = $_POST["groupname"];
$l = OC_L10N::get('core');
$l = OC_L10N::get('settings');
// Does the group exist?
if( in_array( $groupname, OC_Group::getGroups())) {