r76548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76547‎ | r76548 | r76549 >
Date:23:43, 11 November 2010
Author:awjrichards
Status:deferred
Tags:
Comment:
Made MW-specific variables we care about available in recaptcha library
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha-php/recaptchalib.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/recaptcha/recaptcha-php/recaptchalib.php
@@ -8,7 +8,6 @@
99 *
1010 * See below for original license and other info.
1111 */
12 -
1312 /*
1413 * This is a PHP library that handles calling reCAPTCHA.
1514 * - Documentation and latest version
@@ -42,6 +41,10 @@
4342 * THE SOFTWARE.
4443 */
4544
 45+// global MW variables that should be available
 46+global $wgPayflowRecaptchaUseHTTPProxy, $wgPayflowRecaptchaHTTPProxy,
 47+ $wgPayflowRecaptchaTimeout, $wgProto, $wgPayflowRecaptchaComsRetryLimit;
 48+
4649 /**
4750 * The reCAPTCHA server URL's
4851 */
@@ -366,7 +369,4 @@
367370 return htmlentities( $emailparts[0] ) . "<a href='" . htmlentities ( $url ) .
368371 "' onclick=\"window.open('" . htmlentities ( $url ) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ( $emailparts [1] );
369372
370 -}
371 -
372 -
373 -?>
 373+}
\ No newline at end of file

Status & tagging log