diff -up blog/inc/clearbricks/dblayer/dblayer.php.php53 blog/inc/clearbricks/dblayer/dblayer.php --- blog/inc/clearbricks/dblayer/dblayer.php.php53 2009-07-31 16:11:46.000000000 +0200 +++ blog/inc/clearbricks/dblayer/dblayer.php 2009-07-31 16:07:32.000000000 +0200 @@ -615,7 +615,9 @@ class record if (isset($this->__extend[$f])) { array_unshift($args,$this); - return call_user_func_array($this->__extend[$f],$args); + $Args=array(); + foreach ($args as $k => &$value) $Args[$k]=&$value; + return call_user_func_array($this->__extend[$f],$Args); } trigger_error('Call to undefined method record::'.$f.'()',E_USER_ERROR); @@ -1016,4 +1018,4 @@ class staticRecord extends record return strcmp($a,$b) * $this->__sortsign; } } -?> \ Pas de fin de ligne à la fin du fichier. +?> diff -up blog/inc/core/class.dc.core.php.php53 blog/inc/core/class.dc.core.php --- blog/inc/core/class.dc.core.php.php53 2009-07-31 16:12:28.000000000 +0200 +++ blog/inc/core/class.dc.core.php 2009-07-31 16:08:22.000000000 +0200 @@ -297,11 +297,12 @@ class dcCore { $args = func_get_args(); array_shift($args); - $res = ''; + $Args=array(); + foreach ($args as $k => &$value) $Args[$k]=&$value; foreach ($this->behaviors[$behavior] as $f) { - $res .= call_user_func_array($f,$args); + $res .= call_user_func_array($f,$Args); } return $res; @@ -1457,4 +1458,4 @@ class dcCore } //@} } -?> \ Pas de fin de ligne à la fin du fichier. +?> diff -up blog/plugins/widgets/class.widgets.php.php53 blog/plugins/widgets/class.widgets.php --- blog/plugins/widgets/class.widgets.php.php53 2009-07-31 16:12:08.000000000 +0200 +++ blog/plugins/widgets/class.widgets.php 2009-07-31 16:09:16.000000000 +0200 @@ -144,7 +144,7 @@ class dcWidget public function call($i=0) { if (is_callable($this->public_callback)) { - return call_user_func($this->public_callback,$this,$i); + return call_user_func_array($this->public_callback,array(&$this,&$i)); } return '
Callback not found for widget '.$this->id.'
'; } @@ -230,4 +230,4 @@ class dcWidget return $res; } } -?> \ Pas de fin de ligne à la fin du fichier. +?>