[guadec-web] Testing database update: Trial 4
- From: Saumya Dwivedi <saumyad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web] Testing database update: Trial 4
- Date: Tue, 8 Jul 2014 09:55:36 +0000 (UTC)
commit c9cf01d9bf5df6d07af65cb1e03b4327535dc909
Author: Saumya Dwivedi <saumya zero gmail com>
Date: Tue Jul 8 15:25:22 2014 +0530
Testing database update: Trial 4
guadec/ipnlistener.php | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/guadec/ipnlistener.php b/guadec/ipnlistener.php
index 82ec962..657cb5e 100755
--- a/guadec/ipnlistener.php
+++ b/guadec/ipnlistener.php
@@ -12,10 +12,11 @@
* @copyright (c) 2012 - Micah Carrick
* @version 2.1.0
*/
+require_once( ABSPATH . 'wp-load.php' );
-
+global $wpdb;
+
class IpnListener {
- global $wpdb;
/**
* If true, the recommended cURL PHP library is used to send the post back
* to PayPal. If flase then fsockopen() is used. Default true.
@@ -311,9 +312,9 @@ class IpnListener {
}
public function updateCompleted($reg_email='dummy mail com') {
- $table_name = ($this->$wpdb)->prefix .'guadec2014_registrations';
+ $table_name = $wpdb->prefix .'guadec2014_registrations';
// error_log($table_name); // check if the wpdb is accessible
- $up = ($this->$wpdb)->update(
+ $up = $wpdb->update(
$table_name,
array(
'payment' => 'Completed'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]