Browse Source

fopen likely doesn't return === false. It probably returns 0 or something
equivalent (==) false.

Tyler Akins 24 năm trước cách đây
mục cha
commit
9a18eaf092
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functions/gettext.php

+ 1 - 1
functions/gettext.php

@@ -59,7 +59,7 @@
          $gettext_php_domain . '.po';
       
       $file = @fopen($filename, 'r');
-      if ($file === false) {
+      if ($file == false) {
          // Uh-ho -- we can't load the file.  Just fake it.  :-)
 	 // This is also for English, which doesn't use translations
          $gettext_php_loaded = true;