Fixed E_STRICT under PHP 5 and 6 (reference operator in instanciation)
authorDan
Thu, 26 Jun 2008 20:59:23 -0400
changeset 297 4f0f987717c6
parent 295 53233b86e054
child 298 499193a6dbe4
Fixed E_STRICT under PHP 5 and 6 (reference operator in instanciation)
includes/wikiformat.php
--- a/includes/wikiformat.php	Fri May 09 23:33:11 2008 -0400
+++ b/includes/wikiformat.php	Thu Jun 26 20:59:23 2008 -0400
@@ -154,7 +154,7 @@
         
         chdir($d);
 
-        $obj =& new $class($rules);
+        $obj = new $class($rules);
         return $obj;
     }
 
@@ -514,7 +514,7 @@
             }
         }
 
-        $this->parseObj[$rule] =& new $class($this);
+        $this->parseObj[$rule] = new $class($this);
 
     }
 
@@ -536,7 +536,7 @@
             }
         }
 
-        $this->renderObj[$rule] =& new $class($this);
+        $this->renderObj[$rule] = new $class($this);
     }
 
     function loadFormatObj($format)
@@ -556,7 +556,7 @@
             }
         }
 
-        $this->formatObj[$format] =& new $class($this);
+        $this->formatObj[$format] = new $class($this);
     }
 
     function addPath($type, $dir)