mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: func_get_args cant be used in a function call in PHP 5.2
This commit is contained in:
parent
f5b867a35d
commit
d0afa9987c
@ -63,8 +63,10 @@ class SSViewer_Scope {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
|
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
|
||||||
|
|
||||||
$this->item = call_user_func_array(array($on, 'obj'), func_get_args());
|
$arguments = func_get_args();
|
||||||
|
$this->item = call_user_func_array(array($on, 'obj'), $arguments);
|
||||||
|
|
||||||
$this->itemIterator = null;
|
$this->itemIterator = null;
|
||||||
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
|
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
|
||||||
$this->currentIndex = count($this->itemStack);
|
$this->currentIndex = count($this->itemStack);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user