* Add a warning for non-descriptive filenames at Special:Upload
* Add {{filepath:}} parser function to get full path to an uploaded file,
complementing {{fullurl:}} for pages.
-
+* (bug 11136) If using Postgres, search path is explicitly set if wgDBmwschema is
+ not set to 'mediawiki', allowing multiple mediawiki instances per user.
=== Bug fixes in 1.12 ===
$this->doQuery("SET client_min_messages = 'ERROR'");
}
+ global $wgDBmwschema, $wgDBts2schema;
+ if (isset( $wgDBmwschema ) && isset( $wgDBts2schema )
+ && $wgDBmwschema !== 'mediawiki'
+ && preg_match( '/^\w+$/', $wgDBmwschema )
+ && preg_match( '/^\w+$/', $wgDBts2schema )
+ ) {
+ $this->doQuery("SET search_path = $wgDBmwschema, $wgDBts2schema, public");
+ }
+
return $this->mConn;
}