diff options
| author | czaks <marcin@6irc.net> | 2016-05-05 08:43:34 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 08:43:34 +0200 |
| commit | a42256b296f14c5f82889f9e222d94a416aa1924 (patch) | |
| tree | 0a8135d22345e9c9b0c171882cc8f08d8985d8d4 | |
| parent | 36b78e5f98302cb8fb3d4a00d4be61d6775d74a3 (diff) | |
locale cache: fix a bug when perms are done wrong
| -rwxr-xr-x | inc/functions.php | 4 |
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) { |
