Fixed bug that stopped users from donating in new implementation

Signed-off-by: Edouard Poitras <edouard@eclipse.org>
diff --git a/thankyou.php b/thankyou.php
index eb6e7ab..b27ca1f 100644
--- a/thankyou.php
+++ b/thankyou.php
@@ -71,14 +71,14 @@
   }
 }
 
-function logABTesting() {
+function logABTesting($paypal, $app) {
   if (isset($_GET['cm']) && ($_GET['cm'] === 'A' || $_GET['cm'] === 'B')) { // Custom Variable (A or B)
-    $data = $Paypal->get_transaction_data();
-    $amount = $App->sqlSanitize($data['amount']);
-    $test = $App->sqlSanitize($_GET['cm']);
+    $data = $paypal->get_transaction_data();
+    $amount = $app->sqlSanitize($data['amount']);
+    $test = $app->sqlSanitize($_GET['cm']);
     if (is_numeric($amount)) {
       $sql = "INSERT INTO thankyou_a_b VALUES (NOW(), '$test', $amount)";
-      $App->eclipse_sql($sql);
+      $app->eclipse_sql($sql);
     }
   }
 }
@@ -94,7 +94,7 @@
   // Make sure user stops getting bothered by donation banner
   setcookie ("thankyou_page[donation]", TRUE, time() + (3600 * 24 * 279), '/', '.eclipse.org');
   // A/B Testing
-  logABTesting();
+  logABTesting($Paypal, $App);
 }
 
 // Sanitize Variables