Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -636,6 +636,19 @@ |
637 | 637 | } |
638 | 638 | |
639 | 639 | /** |
| 640 | + * Same as new factory( ... ), kept for backward compatibility |
| 641 | + * @deprecated since 1.18 |
| 642 | + * @see Database::factory() |
| 643 | + */ |
| 644 | + public final static function newFromType( $dbType, $p = array() ) { |
| 645 | + wfDeprecated( __METHOD__ ); |
| 646 | + if ( isset( $p['tableprefix'] ) ) { |
| 647 | + $p['tablePrefix'] = $p['tableprefix']; |
| 648 | + } |
| 649 | + return self::factory( $dbType, $p ); |
| 650 | + } |
| 651 | + |
| 652 | + /** |
640 | 653 | * Given a DB type, construct the name of the appropriate child class of |
641 | 654 | * DatabaseBase. This is designed to replace all of the manual stuff like: |
642 | 655 | * $class = 'Database' . ucfirst( strtolower( $type ) ); |