From: Chad Horohoe Date: Wed, 20 Jul 2011 23:27:34 +0000 (+0000) Subject: Revert DatabaseBase::tablePrefix() part of r79272: doesn't seem to be really necessar... X-Git-Tag: 1.31.0-rc.0~28709 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e1b464e5158e878cb9d470e905dee9fa6bd5beeb;p=lhc%2Fweb%2Fwiklou.git Revert DatabaseBase::tablePrefix() part of r79272: doesn't seem to be really necessary (tests are all still passing, Mysql && Sqlite) and as Tim points out this breaks anything trying to use it as an accessor rather than mutator. --- diff --git a/includes/db/Database.php b/includes/db/Database.php index accacdb2b0..a3a439cb6e 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -324,7 +324,7 @@ abstract class DatabaseBase implements DatabaseType { * @return The previous table prefix. */ function tablePrefix( $prefix = null ) { - return wfSetVar( $this->mTablePrefix, $prefix, true ); + return wfSetVar( $this->mTablePrefix, $prefix ); } /**