From c20cfe2d8ed519913c524b77428e5fa08949d905 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Sep 2010 11:52:19 -0700 Subject: [PATCH] PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until PHP 5.3) --- plugins/YammerImport/YammerImportPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5