Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX PHP 5.2 doesn't allow calling a static method like $className:…

…:$staticMethod()
  • Loading branch information...
commit 68d83d187b46923633a056740ee179bc2e970f8a 1 parent 193288a
@stojg stojg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  view/SSViewer.php
View
2  view/SSViewer.php
@@ -328,7 +328,7 @@ protected function createCallableArray(&$extraArray, $interfaceToQuery, $variabl
if ($createObject) $implementer = new $implementer();
// Get the exposed variables
- $exposedVariables = $implementer::$variableMethod();
+ $exposedVariables = call_user_func(array($implementer, $variableMethod));
foreach($exposedVariables as $varName => $details) {
if (!is_array($details)) $details = array('method' => $details, 'casting' => Object::get_static('ViewableData', 'default_cast'));
Please sign in to comment.
Something went wrong with that request. Please try again.