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
@ -64,7 +64,9 @@ class SSViewer_Scope {
|
||||
default:
|
||||
$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->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
|
||||
$this->currentIndex = count($this->itemStack);
|
||||
|
Loading…
x
Reference in New Issue
Block a user