]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
PHP 5.2 compat fix in YammerPlugin (can't call $var::staticFunction() directly until...
authorBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 18:52:19 +0000 (11:52 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 18:52:19 +0000 (11:52 -0700)
plugins/YammerImport/YammerImportPlugin.php

index 98c6ecd0ab13349f97fb884a47eb713039489aa7..2ce5af21b04321586701b38097536e5f9dcd8061 100644 (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;