* (bug 28034) uploading file to local wiki when file exists on shared repository
(commons) gives spurious info in the warning message
* Usernames get lost when selecting different sorts on Special:listfiles
-* (Bug 14005) editing section 0 of an existing but empty page gives no such
+* (bug 14005) editing section 0 of an existing but empty page gives no such
section error
+* (bug 26939) Installer does not set $wgMetaNamespace
=== API changes in 1.18 ===
* (bug 26339) Throw warning when truncating an overlarge API result
* @param $option Array
*/
function __construct( $siteName, $admin = null, array $option = array() ) {
+ global $wgContLang;
+
parent::__construct();
foreach ( $this->optionMap as $opt => $global ) {
}
if ( isset( $option['lang'] ) ) {
- global $wgLang, $wgContLang, $wgLanguageCode;
+ global $wgLang, $wgLanguageCode;
$this->setVar( '_UserLang', $option['lang'] );
$wgContLang = Language::factory( $option['lang'] );
$wgLang = Language::factory( $option['lang'] );
$this->setVar( 'wgSitename', $siteName );
+ $metaNS = $wgContLang->ucfirst( str_replace( ' ', '_', $siteName ) );
+ if ( $metaNS == 'MediaWiki' ) {
+ $metaNS = 'Project';
+ }
+ $this->setVar( 'wgMetaNamespace', $metaNS );
+
if ( $admin ) {
$this->setVar( '_AdminName', $admin );
}