diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-01 22:05:20 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-06 20:23:17 +0000 |
commit | b6c5ca126b802354c44a374e72b2e0b677b2af90 (patch) | |
tree | b282349aeeca29913466ed0ddc4bb3856248e906 /lib/l10n.php | |
parent | c960e42a1723a3ddc1a703724a6863b3a2d5fa8e (diff) | |
download | nextcloud-server-b6c5ca126b802354c44a374e72b2e0b677b2af90.tar.gz nextcloud-server-b6c5ca126b802354c44a374e72b2e0b677b2af90.zip |
First almost working version
Diffstat (limited to 'lib/l10n.php')
-rw-r--r-- | lib/l10n.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/l10n.php b/lib/l10n.php index 682e15f0e9b..70b32b92984 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -263,8 +263,8 @@ class OC_L10N{ $i18ndir = OC::$SERVERROOT.'/core/l10n/'; if($app != ''){ // Check if the app is in the app folder - if(file_exists(OC::$APPSROOT.'/apps/'.$app.'/l10n/')){ - $i18ndir = OC::$APPSROOT.'/apps/'.$app.'/l10n/'; + if(file_exists(OC_App::getAppPath($app).'/l10n/')){ + $i18ndir = OC_App::getAppPath($app).'/l10n/'; } else{ $i18ndir = OC::$SERVERROOT.'/'.$app.'/l10n/'; |