r93106 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93105‎ | r93106 | r93107 >
Date:20:18, 25 July 2011
Author:platonides
Status:ok
Tags:
Comment:
MFT 93103.
Modified paths:
  • /branches/REL1_18/phase3/includes/db/Database.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/includes/db/Database.php
@@ -1883,6 +1883,12 @@
18841884 }
18851885 $prefix = $this->mTablePrefix; # Default prefix
18861886
 1887+ # A database name has been specified in input. We don't want any
 1888+ # prefixes added.
 1889+ if ( isset( $database ) ) {
 1890+ $prefix = '';
 1891+ }
 1892+
18871893 # Note that we use the long format because php will complain in in_array if
18881894 # the input is not an array, and will complain in is_array if it is not set.
18891895 if ( !isset( $database ) # Don't use shared database if pre selected.
@@ -1898,7 +1904,6 @@
18991905 # Quote the $database and $table and apply the prefix if not quoted.
19001906 if ( isset( $database ) ) {
19011907 $database = ( !$quoted || $this->isQuotedIdentifier( $database ) ? $database : $this->addIdentifierQuotes( $database ) );
1902 - $prefix = '';
19031908 }
19041909
19051910 $table = "{$prefix}{$table}";
Property changes on: branches/REL1_18/phase3/includes/db/Database.php
___________________________________________________________________
Modified: svn:mergeinfo
19061911 Merged /trunk/phase3/includes/db/Database.php:r92551-92552,92560,92563-92564,92568,92570,92573-92574,92576,92581,93103

Status & tagging log