From ba0fc4fa20067528effd4802e53ceeb959640825 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 12 Jan 2012 13:42:29 +0100 Subject: Update to MediaWiki 1.18.1 --- includes/db/Database.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'includes/db/Database.php') diff --git a/includes/db/Database.php b/includes/db/Database.php index 75e6a91d..d1a3b2bd 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -589,6 +589,19 @@ abstract class DatabaseBase implements DatabaseType { return new DatabaseMysql( $server, $user, $password, $dbName, $flags ); } + /** + * Same as new factory( ... ), kept for backward compatibility + * @deprecated since 1.18 + * @see Database::factory() + */ + public final static function newFromType( $dbType, $p = array() ) { + wfDeprecated( __METHOD__ ); + if ( isset( $p['tableprefix'] ) ) { + $p['tablePrefix'] = $p['tableprefix']; + } + return self::factory( $dbType, $p ); + } + /** * Given a DB type, construct the name of the appropriate child class of * DatabaseBase. This is designed to replace all of the manual stuff like: -- cgit v1.2.2