diff options
Diffstat (limited to 'plugins/SocialObject/SocialObjectPlugin.php')
-rw-r--r-- | plugins/SocialObject/SocialObjectPlugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SocialObject/SocialObjectPlugin.php b/plugins/SocialObject/SocialObjectPlugin.php index 7c63c8a70..173b3d5bf 100644 --- a/plugins/SocialObject/SocialObjectPlugin.php +++ b/plugins/SocialObject/SocialObjectPlugin.php @@ -75,8 +75,8 @@ class SocialObjectPlugin extends Plugin function onCheckSchema() { $schema = Schema::get(); - $classname = $this->dbclass - $schema->ensureTable($classname::schemaDef()); + $schema->ensureTable(call_user_func( + array($this->dbname, 'schemaDef'))); return true; } @@ -114,7 +114,7 @@ class SocialObjectPlugin extends Plugin $len = strlen($s); # if key starts with $s, if(substr($key, 0, $len) === $s) { - Memcached_DataObject::blow(sprintf($r, $this->slug))); + Memcached_DataObject::blow(sprintf($r, $this->slug)); } } } |