diff options
author | Andreas Gohr <andi@splitbrain.org> | 2010-01-15 12:18:43 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2010-01-15 12:18:43 +0100 |
commit | 67f9913d4a386fe65c9e72ca452b0fa91b010b12 (patch) | |
tree | c2b6b10bb8eeae77e8340496758fb97307081d8e /inc/parser/handler.php | |
parent | 8c5215b744582107f352aa4ccea4182296674250 (diff) | |
download | rpg-67f9913d4a386fe65c9e72ca452b0fa91b010b12.tar.gz rpg-67f9913d4a386fe65c9e72ca452b0fa91b010b12.tar.bz2 |
removed deprecated PHP4 construct
Assigning the return value of new by reference is deprecated, PHP5's new
automatically assigns by reference
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r-- | inc/parser/handler.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 9fe5866ad..eaa42f9bf 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -20,7 +20,7 @@ class Doku_Handler { var $rewriteBlocks = true; function Doku_Handler() { - $this->CallWriter = & new Doku_Handler_CallWriter($this); + $this->CallWriter = new Doku_Handler_CallWriter($this); } function _addCall($handler, $args, $pos) { @@ -47,7 +47,7 @@ class Doku_Handler { } if ( $this->rewriteBlocks ) { - $B = & new Doku_Handler_Block(); + $B = new Doku_Handler_Block(); $this->calls = $B->process($this->calls); } @@ -212,7 +212,7 @@ class Doku_Handler { $this->_footnote = true; - $ReWriter = & new Doku_Handler_Nest($this->CallWriter,'footnote_close'); + $ReWriter = new Doku_Handler_Nest($this->CallWriter,'footnote_close'); $this->CallWriter = & $ReWriter; $this->_addCall('footnote_open', array(), $pos); break; @@ -240,7 +240,7 @@ class Doku_Handler { function listblock($match, $state, $pos) { switch ( $state ) { case DOKU_LEXER_ENTER: - $ReWriter = & new Doku_Handler_List($this->CallWriter); + $ReWriter = new Doku_Handler_List($this->CallWriter); $this->CallWriter = & $ReWriter; $this->_addCall('list_open', array($match), $pos); break; @@ -302,7 +302,7 @@ class Doku_Handler { function preformatted($match, $state, $pos) { switch ( $state ) { case DOKU_LEXER_ENTER: - $ReWriter = & new Doku_Handler_Preformatted($this->CallWriter); + $ReWriter = new Doku_Handler_Preformatted($this->CallWriter); $this->CallWriter = & $ReWriter; $this->_addCall('preformatted_start',array(), $pos); break; @@ -328,7 +328,7 @@ class Doku_Handler { switch ( $state ) { case DOKU_LEXER_ENTER: - $ReWriter = & new Doku_Handler_Quote($this->CallWriter); + $ReWriter = new Doku_Handler_Quote($this->CallWriter); $this->CallWriter = & $ReWriter; $this->_addCall('quote_start',array($match), $pos); break; @@ -580,7 +580,7 @@ class Doku_Handler { case DOKU_LEXER_ENTER: - $ReWriter = & new Doku_Handler_Table($this->CallWriter); + $ReWriter = new Doku_Handler_Table($this->CallWriter); $this->CallWriter = & $ReWriter; $this->_addCall('table_start', array(), $pos); |