summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-05 08:43:34 +0200
committerczaks <marcin@6irc.net>2016-05-05 08:43:34 +0200
commita42256b296f14c5f82889f9e222d94a416aa1924 (patch)
tree0a8135d22345e9c9b0c171882cc8f08d8985d8d4 /inc/functions.php
parent36b78e5f98302cb8fb3d4a00d4be61d6775d74a3 (diff)
locale cache: fix a bug when perms are done wrong
Diffstat (limited to 'inc/functions.php')
-rwxr-xr-xinc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index fd4c910d..462bc173 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -127,7 +127,7 @@ function loadConfig() {
// So, we may store the locale in a tmp/ filesystem.
if (file_exists($fn = 'tmp/cache/locale_' . $boardsuffix ) ) {
- $config['locale'] = file_get_contents($fn);
+ $config['locale'] = @file_get_contents($fn);
}
else {
$config['locale'] = 'en';
@@ -144,7 +144,7 @@ function loadConfig() {
$config['locale'] = $matches[count($matches)-1];
}
- file_put_contents($fn, $config['locale']);
+ @file_put_contents($fn, $config['locale']);
}
if ($config['locale'] != $current_locale) {