Fix parameratized static function call so it works in PHP 5.2
This commit is contained in:
parent
a1907f20c4
commit
0e2d9432b5
@ -48,7 +48,7 @@ class SiteProfile
|
|||||||
$sprofileClass = ucfirst($name) . "Site";
|
$sprofileClass = ucfirst($name) . "Site";
|
||||||
|
|
||||||
if (class_exists($sprofileClass)) {
|
if (class_exists($sprofileClass)) {
|
||||||
return $sprofileClass::getSettings();
|
return call_user_func(array($sprofileClass, 'getSettings'));
|
||||||
} else {
|
} else {
|
||||||
common_log(
|
common_log(
|
||||||
LOG_ERR,
|
LOG_ERR,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user