r109348 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109347‎ | r109348 | r109349 >
Date:08:28, 18 January 2012
Author:neilk
Status:ok
Tags:
Comment:
deal with lack of zip
Modified paths:
  • /trunk/extensions/CongressLookup/SpecialCongressFail.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CongressLookup/SpecialCongressFail.php
@@ -37,16 +37,18 @@
3838 $out->addHtml('Thank you!');
3939
4040 } else {
41 - $out->addHtml('<div>');
42 - $out->addHtml('ZIP Code (will be recorded): ' . $zip);
43 - $out->addHtml('</div>');
44 -
4541 $out->addHtml('<form method=post action="/wiki/Special:CongressFail">');
46 -
4742 $out->addHtml('<div>');
48 - $out->addHtml('<input type=hidden name=zip value=' . $zip. '>');
49 - $out->addHtml('Tell us what went wrong: <input type=text size=100 maxlength=255 name=comment>');
 43+ $out->addHtml('<div>');
 44+ if ( $zip != 0 ) {
 45+ $out->addHtml('ZIP Code (will be recorded): ' . $zip);
 46+ $out->addHtml('<input type=hidden name=zip value=' . $zip . '>');
 47+ } else {
 48+ $out->addHtml('ZIP code: <input name=zip>');
 49+ }
5050 $out->addHtml('</div>');
 51+ $out->addHtml('Tell us what went wrong: <input type=text size=100 name=comment maxlength=255>');
 52+ $out->addHtml('</div>');
5153
5254 $out->addHtml('<div>');
5355 $out->addHtml('<input type=submit name=store value="Send Error Report">');

Status & tagging log