r89814 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89813‎ | r89814 | r89815 >
Date:03:27, 10 June 2011
Author:demon
Status:ok (Comments)
Tags:
Comment:
(bug 29332) don't let install progress if user requests mediawiki-announce subscription but does not enter email. Thanks Sumana :)
Modified paths:
  • /trunk/phase3/RELEASE-NOTES-1.19 (modified) (history)
  • /trunk/phase3/includes/installer/Installer.i18n.php (modified) (history)
  • /trunk/phase3/includes/installer/WebInstallerPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/RELEASE-NOTES-1.19
@@ -86,6 +86,8 @@
8787 * (bug 29101) Special:FileDuplicateSearch shows silly message
8888 * (bug 29048) jQuery.tabIndex: firstTabIndex() should not output the same
8989 as lastTabIndex().
 90+* (bug 29332) Warn if user requests mediawiki-announce subscription but does not
 91+ enter an e-mail address.
9092
9193 === API changes in 1.19 ===
9294 * BREAKING CHANGE: action=watch now requires POST and token.
Index: trunk/phase3/includes/installer/WebInstallerPage.php
@@ -758,6 +758,12 @@
759759 $this->parent->showError( 'config-admin-error-bademail' );
760760 $retVal = false;
761761 }
 762+ // If they asked to subscribe to mediawiki-announce but didn't give
 763+ // an e-mail, show an error. Bug 29332
 764+ if( !$email && $this->getVar( '_Subscribe' ) ) {
 765+ $this->parent->showError( 'config-subscribe-noemail' );
 766+ $retVal = false;
 767+ }
762768
763769 return $retVal;
764770 }
Index: trunk/phase3/includes/installer/Installer.i18n.php
@@ -373,6 +373,8 @@
374374 'config-subscribe' => 'Subscribe to the [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce release announcements mailing list].',
375375 'config-subscribe-help' => 'This is a low-volume mailing list used for release announcements, including important security announcements.
376376 You should subscribe to it and update your MediaWiki installation when new versions come out.',
 377+ 'config-subscribe-noemail' => 'You tried to subscribe to the release announcements mailing list without providing an e-mail address.
 378+Please provide an e-mail address if you wish to subscribe to the mailing list.',
377379 'config-almost-done' => 'You are almost done!
378380 You can now skip the remaining configuration and install the wiki right now.',
379381 'config-optional-continue' => 'Ask me more questions.',

Comments

#Comment by MaxSem (talk | contribs)   05:48, 10 June 2011

JS?

Status & tagging log