]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix parameratized static function call so it works in PHP 5.2
authorZach Copley <zach@status.net>
Mon, 29 Aug 2011 18:17:59 +0000 (11:17 -0700)
committerZach Copley <zach@status.net>
Mon, 29 Aug 2011 18:17:59 +0000 (11:17 -0700)
lib/siteprofile.php

index c294d24569c2adca80f3fe5ba263e6901569d1f3..51ce907b1927d039bd4178e219768d4b49b5c59b 100644 (file)
@@ -48,7 +48,7 @@ class SiteProfile
         $sprofileClass = ucfirst($name) . "Site";
 
         if (class_exists($sprofileClass)) {
-            return $sprofileClass::getSettings();
+            return call_user_func(array($sprofileClass, 'getSettings'));
         } else {
             common_log(
                 LOG_ERR,