From 9498a3d2852ace0f4ee23598f542dbce3fd2ec28 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 2 Sep 2012 15:19:34 +0200 Subject: Update to MediaWiki 1.19.2 --- includes/db/Database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/db') diff --git a/includes/db/Database.php b/includes/db/Database.php index 9d517e4a..f3e84675 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1973,7 +1973,9 @@ abstract class DatabaseBase implements DatabaseType { # Quote the $database and $table and apply the prefix if not quoted. if ( isset( $database ) ) { - $database = ( $format == 'quoted' || $this->isQuotedIdentifier( $database ) ? $database : $this->addIdentifierQuotes( $database ) ); + if ( $format == 'quoted' && !$this->isQuotedIdentifier( $database ) ) { + $database = $this->addIdentifierQuotes( $database ); + } } $table = "{$prefix}{$table}"; -- cgit v1.2.2