summaryrefslogtreecommitdiff
path: root/plugins/YammerImport
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-28 11:52:19 -0700
committerBrion Vibber <brion@pobox.com>2010-09-28 11:52:19 -0700
commitc20cfe2d8ed519913c524b77428e5fa08949d905 (patch)
treedcd09fadf58293b01c7235a1c40aa092518e0662 /plugins/YammerImport
parentdd3e33ff5205fb23882ec1219a0f34f1120bf15c (diff)
PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until PHP 5.3)
Diffstat (limited to 'plugins/YammerImport')
-rw-r--r--plugins/YammerImport/YammerImportPlugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/YammerImport/YammerImportPlugin.php b/plugins/YammerImport/YammerImportPlugin.php
index 98c6ecd0a..2ce5af21b 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;