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

This commit is contained in:
Brion Vibber 2010-09-28 11:52:19 -07:00
parent dd3e33ff52
commit c20cfe2d8e
1 changed files with 2 additions and 1 deletions

View File

@ -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;