Wikia code/includes/db/LoadBalancer.php
Appearance
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\db\LoadBalancer.php 2011-07-18 22:30:57.698242200 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\db\LoadBalancer.php 2011-08-17 15:28:13.519531200 +0100
@@ -657,6 +658,14 @@
if ( isset( $server['fakeMaster'] ) ) {
$db->setFakeMaster( true );
}
+
+ // Wikia - change begin - @author: wladek
+ // allow per-cluster setting for character encoding (only mysql supported)
+ if ( isset( $server['charset'] ) && $db->getType() == 'mysql' ) {
+ $db->query( "SET NAMES'{$server['charset']}';", __METHOD__ );
+ }
+ // Wikia - change end
+
return $db;
}