(bug 29332) don't let install progress if user requests mediawiki-announce subscripti...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 10 Jun 2011 03:27:37 +0000 (03:27 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 10 Jun 2011 03:27:37 +0000 (03:27 +0000)
RELEASE-NOTES-1.19
includes/installer/Installer.i18n.php
includes/installer/WebInstallerPage.php

index 4577727..dad493d 100644 (file)
@@ -86,6 +86,8 @@ production.
 * (bug 29101) Special:FileDuplicateSearch shows silly message
 * (bug 29048) jQuery.tabIndex: firstTabIndex() should not output the same
   as lastTabIndex().
+* (bug 29332) Warn if user requests mediawiki-announce subscription but does not
+  enter an e-mail address.
 
 === API changes in 1.19 ===
 * BREAKING CHANGE: action=watch now requires POST and token.
index 1bf6fa2..6a198e9 100644 (file)
@@ -373,6 +373,8 @@ Specify a different username.',
        'config-subscribe'                => 'Subscribe to the [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce release announcements mailing list].',
        'config-subscribe-help'           => 'This is a low-volume mailing list used for release announcements, including important security announcements.
 You should subscribe to it and update your MediaWiki installation when new versions come out.',
+       'config-subscribe-noemail'        => 'You tried to subscribe to the release announcements mailing list without providing an e-mail address.
+Please provide an e-mail address if you wish to subscribe to the mailing list.',
        'config-almost-done'              => 'You are almost done!
 You can now skip the remaining configuration and install the wiki right now.',
        'config-optional-continue'        => 'Ask me more questions.',
index 65fa0a2..b09ea23 100644 (file)
@@ -758,6 +758,12 @@ class WebInstaller_Name extends WebInstallerPage {
                        $this->parent->showError( 'config-admin-error-bademail' );
                        $retVal = false;
                }
+               // If they asked to subscribe to mediawiki-announce but didn't give
+               // an e-mail, show an error. Bug 29332
+               if( !$email && $this->getVar( '_Subscribe' ) ) {
+                       $this->parent->showError( 'config-subscribe-noemail' );
+                       $retVal = false;
+               }
 
                return $retVal;
        }