Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -686,7 +686,7 @@ |
687 | 687 | isset( $p['flags'] ) ? $p['flags'] : 0, |
688 | 688 | isset( $p['tablePrefix'] ) ? $p['tablePrefix'] : 'get from global' |
689 | 689 | ); |
690 | | - } elseif ( class_exists( $class ) ) { |
| 690 | + } elseif ( class_exists( $class ) && is_subclass_of( $class, 'DatabaseBase' ) ) { |
691 | 691 | return new $class( $p ); |
692 | 692 | } else { |
693 | 693 | return null; |