From 755ca95e50be67742450f4dc9ba1e0a9c14a7642 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 6 Mar 2011 19:52:23 +0000 Subject: [PATCH] (bug 26690) Value of the 'Name of wiki' field is not retain after two subsequent click on 'Continue' button. This has been a complaint since the beginning, that the installer "forgets" $wgSitename. The original intention, as I saw it, was to encourage people from choosing 'MediaWiki' as the name of their wiki. Just hardcode it, I don't think we're changing the name anytime soon. --- includes/installer/WebInstallerPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 090f03c678..a04b298776 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -552,7 +552,11 @@ class WebInstaller_Name extends WebInstallerPage { $this->startForm(); - if ( $this->getVar( 'wgSitename' ) == $GLOBALS['wgSitename'] ) { + // Encourage people to not name their site 'MediaWiki' by blanking the + // field. I think that was the intent with the original $GLOBALS['wgSitename'] + // but these two always were the same so had the effect of making the + // installer forget $wgSitename when navigating back to this page. + if ( $this->getVar( 'wgSitename' ) == 'MediaWiki' ) { $this->setVar( 'wgSitename', '' ); } -- 2.20.1