Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-08-31 01:51:44 +0400
committerThomas Mueller <thomas.mueller@tmit.eu>2012-08-31 01:51:44 +0400
commit58b1e841f11559f462ce803a500105f0b64f6e36 (patch)
tree792b58d8b3b3914c470034298e2d57c22a9d295f /lib/json.php
parent6324daecc08e947e9290228a5bf6dca49ceeabaa (diff)
fix translations within subfolder /lib
Diffstat (limited to 'lib/json.php')
-rw-r--r--lib/json.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/json.php b/lib/json.php
index 32ae734e4a5..12442cc83d7 100644
--- a/lib/json.php
+++ b/lib/json.php
@@ -24,7 +24,7 @@ class OC_JSON{
*/
public static function checkAppEnabled($app){
if( !OC_App::isEnabled($app)){
- $l = OC_L10N::get('core');
+ $l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Application is not enabled') )));
exit();
}
@@ -35,7 +35,7 @@ class OC_JSON{
*/
public static function checkLoggedIn(){
if( !OC_User::isLoggedIn()){
- $l = OC_L10N::get('core');
+ $l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
exit();
}
@@ -47,7 +47,7 @@ class OC_JSON{
*/
public static function callCheck(){
if( !OC_Util::isCallRegistered()){
- $l = OC_L10N::get('core');
+ $l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Token expired. Please reload page.') )));
exit();
}
@@ -59,7 +59,7 @@ class OC_JSON{
public static function checkAdminUser(){
self::checkLoggedIn();
if( !OC_Group::inGroup( OC_User::getUser(), 'admin' )){
- $l = OC_L10N::get('core');
+ $l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
exit();
}
@@ -71,7 +71,7 @@ class OC_JSON{
public static function checkSubAdminUser(){
self::checkLoggedIn();
if(!OC_Group::inGroup(OC_User::getUser(),'admin') && !OC_SubAdmin::isSubAdmin(OC_User::getUser())){
- $l = OC_L10N::get('core');
+ $l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
exit();
}