summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-19 15:10:33 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-19 15:10:33 +0100
commit196f1c3786ca009b3180e8ca11d0bf0258f5be92 (patch)
treea16a45a966a15af721808002cb2d10d01b1e5c7b /lib/base.php
parente73a47a824c639f3e8ae83f8d52b590d60f065be (diff)
downloadnextcloud-server-196f1c3786ca009b3180e8ca11d0bf0258f5be92.tar.gz
nextcloud-server-196f1c3786ca009b3180e8ca11d0bf0258f5be92.zip
add a check and a warning if setlocale is working
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 0b75f6f085e..9cdadbb7991 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -474,6 +474,11 @@ class OC{
exit;
}
}
+
+ // write error into log if locale can't be set
+ if(OC_Util::issetlocaleworking()==false) {
+ OC_Log::write('core', 'setting locate to en_US.UTF-8 failed. Support is probably not installed on your system', OC_Log::ERROR);
+ }
}
/**