浏览代码

chmod 700 locale

tokul 20 年之前
父节点
当前提交
8bd5a10a74
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      class/l10n/streams.class.php

+ 2 - 1
class/l10n/streams.class.php

@@ -58,7 +58,8 @@ class FileReader {
      * @return boolean false there is a problem with $filename
      */
     function FileReader($filename) {
-        if (file_exists($filename)) {
+        // disable stat warnings for unreadable directories
+        if (@file_exists($filename)) {
 
             $this->_length=filesize($filename);
             $this->_pos = 0;