fix ctors
authorAlan <alan@roojs.com>
Mon, 26 Feb 2024 02:46:35 +0000 (10:46 +0800)
committerAlan <alan@roojs.com>
Mon, 26 Feb 2024 02:46:35 +0000 (10:46 +0800)
XML/Tree.php
XML/Tree/Morph.php

index 1519be3..ef8c7a9 100644 (file)
@@ -89,7 +89,7 @@ class XML_Tree extends XML_Parser
     * @param  string  filename  Filename where to read the XML
     * @param  string  version   XML Version to apply
     */
-    function XML_Tree($filename = '', $version = '1.0')
+    function __construct($filename = '', $version = '1.0')
     {
         $this->filename = $filename;
         $this->version  = $version;
index c75deee..1cef21f 100644 (file)
@@ -111,9 +111,9 @@ class XML_Tree_Morph extends XML_Tree {
     * @access   public
     */
   
-    function XML_Tree_Morph($filename,$options) {
+    function __construct($filename,$options) {
        
-        XML_Tree::XML_Tree($filename,'1.0');
+        parent::__construct($filename,'1.0');
         
         $this->_morphOptions = $options;
     }