Browse Source

chmod 700 locale

tokul 20 năm trước cách đây
mục cha
commit
8bd5a10a74
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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;