diff options
Diffstat (limited to 'lib/schema.php')
-rw-r--r-- | lib/schema.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/schema.php b/lib/schema.php index a7f64ebed..164387ff3 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -75,8 +75,11 @@ class Schema static function get() { + $type = common_config('db', 'type'); if (empty(self::$_single)) { - self::$_single = new Schema(); + include "lib/schema.{$type}.php"; + $class = $type.='Schema'; + self::$_single = new $class(); } return self::$_single; } |