From e1b464e5158e878cb9d470e905dee9fa6bd5beeb Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 20 Jul 2011 23:27:34 +0000 Subject: [PATCH] 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. --- includes/db/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } /** -- 2.20.1