OSDN Git Service

#17863 - Constructor has not compatibility at 5.2.x and 5.3.x.
[mulab/XCLite.git] / public_html / kernel / block.php
index 85b4448..3a9b2a2 100644 (file)
@@ -59,7 +59,7 @@ class XoopsBlock extends XoopsObject
      *
      * @param mixed $id
      **/
-    function XoopsBlock($id = null)
+    function __construct($id = null)
     {
         $this->initVar('bid', XOBJ_DTYPE_INT, null, false);
         $this->initVar('mid', XOBJ_DTYPE_INT, 0, false);