From: Steve Sutton Date: Fri, 22 Jun 2018 19:22:13 +0000 (-0400) Subject: Get php notice for the name of the class constructor. X-Git-Tag: v1.0.3^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f9fab2a2c3f0915c83c994c956f76708b71c8387;p=WP-Plugins%2Fglm-gravityform-streamsend.git Get php notice for the name of the class constructor. Changing the class constructor name to __construct --- diff --git a/lib/class_streamsend_api.php b/lib/class_streamsend_api.php index e3b41d7..0d3da9b 100644 --- a/lib/class_streamsend_api.php +++ b/lib/class_streamsend_api.php @@ -375,7 +375,7 @@ class StreamSend { * * May be called with optional $debug parameter to set debug right away. */ - function StreamSend($base_url, $user_name, $user_password, $debug = false ) + function __construct($base_url, $user_name, $user_password, $debug = false ) { global $streamsendFieldTypes; @@ -1419,7 +1419,7 @@ class StreamSend { $post_data .= ' <'.trim($k).'>'.trim($v).'\n"; } } - + $post_data .= " $activate\n" ." $deliver\n" ." $welcome\n"; @@ -1428,8 +1428,8 @@ class StreamSend { $this->debug('contactCreate() XML POST request data
'
                     ."\n".htmlentities($this->postData)."\n"
                     .'
'); - - + + /** This operation requires the "POST" Method */ if ($this->sendRequest('POST', 'audiences/'.STREAMSEND_AUDIENCE.'/people') === false) { $this->debug('contactCreate() Call to sendRequest() failed.'); @@ -2168,5 +2168,3 @@ class StreamSend { } - -?>