Changeset 200929
- Timestamp:
- 02/02/2010 02:23:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
woopra/trunk/inc/xml.php
r200927 r200929 144 144 function init() { 145 145 if (!$this->api_key) // Check to see if site key has not been set. 146 return new WP_Error('apikey-empty', sprintf( __('%s: Sorry. The API Key was not filled out correctly.'), 'WoopraXML::process_data( 215)' ) );146 return new WP_Error('apikey-empty', sprintf( __('%s: Sorry. The API Key was not filled out correctly.'), 'WoopraXML::process_data()' ) ); 147 147 148 148 if (!$this->api_page) // Check to see if api page has not been set. 149 return new WP_Error('apipage-empty', sprintf( __('%s: Sorry. The API Page was not filled out correctly. '), 'WoopraXML::process_data(215)' ) );149 return new WP_Error('apipage-empty', sprintf( __('%s: Sorry. The API Page was not filled out correctly.)' ) ); 150 150 151 151 return true; … … 203 203 // ** POST THE RESPONSE **/ 204 204 if ( is_soap_fault( $woopra_soap->{$this->api_page}($this->args) ) ) { 205 return new WP_Error('soap-error', sprintf( __('%s: Sorry. There was a SOAP connection error to the Woopra API. Please try again later.'), 'WoopraXML::process_data(2 15)' ) );205 return new WP_Error('soap-error', sprintf( __('%s: Sorry. There was a SOAP connection error to the Woopra API. Please try again later.'), 'WoopraXML::process_data(25)' ) ); 206 206 } 207 207 // ** STORE THE DATA **/ … … 220 220 if ( !xml_parse($this->parser, $woopra_request_data) ) { 221 221 unset($woopra_request_data, $this->parser); 222 return new WP_Error('xml-parse-error', sprintf(__('%s: XML error at line %d column %d', 'woopra'), 'WoopraXML::process_data(2 32)', xml_get_current_line_number($this->parser), xml_get_current_column_number($this->parser) ) );222 return new WP_Error('xml-parse-error', sprintf(__('%s: XML error at line %d column %d', 'woopra'), 'WoopraXML::process_data(22)', xml_get_current_line_number($this->parser), xml_get_current_column_number($this->parser) ) ); 223 223 } 224 224 // ** REMOVE THE DATA FROM THE SYSTEM TO FREE UP RESOURCES **/
Note: See TracChangeset
for help on using the changeset viewer.