Plugin Directory

Changeset 200929

Timestamp:
02/02/2010 02:23:36 AM (15 years ago)
Author:
ShaneF
Message:

fix on the lines of code that have errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woopra/trunk/inc/xml.php

    r200927 r200929  
    144144    function init() {
    145145        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()' ) );
    147147       
    148148        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.)' ) );
    150150           
    151151        return true;
     
    203203        //  ** POST THE RESPONSE **/
    204204        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(215)' ) );
     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)' ) );
    206206        }
    207207        //  ** STORE THE DATA **/
     
    220220        if ( !xml_parse($this->parser, $woopra_request_data) ) {
    221221            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(232)', 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) ) );
    223223        }
    224224        //  ** REMOVE THE DATA FROM THE SYSTEM TO FREE UP RESOURCES **/
Note: See TracChangeset for help on using the changeset viewer.