Commit c20cfe2d authored by Brion Vibber's avatar Brion Vibber

PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until PHP 5.3)

parent dd3e33ff
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment