瀏覽代碼

Forgot to change constructor name

pdontthink 3 年之前
父節點
當前提交
0d6d3dcf6c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/l10n/gettext.class.php

+ 1 - 1
class/l10n/gettext.class.php

@@ -74,7 +74,7 @@ class gettext_reader {
      * @return boolean false, if some error with stream
      * @return boolean false, if some error with stream
 TODO: Constructors should not return anything.
 TODO: Constructors should not return anything.
      */
      */
-    function gettext_reader($Reader) {
+    function __construct($Reader) {
         $MAGIC1 = (int) ((222) | (18<<8) | (4<<16) | (149<<24));
         $MAGIC1 = (int) ((222) | (18<<8) | (4<<16) | (149<<24));
         $MAGIC2 = (int) ((149) | (4<<8) | (18<<16) | (222<<24));
         $MAGIC2 = (int) ((149) | (4<<8) | (18<<16) | (222<<24));