From: Brion Vibber Date: Tue, 28 Sep 2010 18:52:19 +0000 (-0700) Subject: PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c20cfe2d8ed519913c524b77428e5fa08949d905;p=quix0rs-gnu-social.git PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until PHP 5.3) --- diff --git a/plugins/YammerImport/YammerImportPlugin.php b/plugins/YammerImport/YammerImportPlugin.php index 98c6ecd0ab..2ce5af21b0 100644 --- a/plugins/YammerImport/YammerImportPlugin.php +++ b/plugins/YammerImport/YammerImportPlugin.php @@ -66,7 +66,8 @@ class YammerImportPlugin extends Plugin 'Yammer_notice', 'Yammer_notice_stub'); foreach ($tables as $table) { - $schema->ensureTable(strtolower($table), $table::schemaDef()); + $schemaDef = call_user_func(array($table, 'schemaDef')); + $schema->ensureTable(strtolower($table), $schemaDef); } return true;