Plugin Directory

Changeset 442492


Ignore:
Timestamp:
09/23/2011 06:49:27 AM (15 years ago)
Author:
brainstormmedia
Message:

Merge branch 'master' of ssh://git.brainstormmedia.com/bsm/basecamp-bug-report

Location:
basecamp-bug-report/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • basecamp-bug-report/trunk/basecamp-bug-report.php

    r440619 r442492  
    7070        if ( !empty($subdomain) )         $this->subdomain = $subdomain;
    7171        if ( !empty($responsible_party) ) $this->responsible_party = $responsible_party;
    72         if ( !empty($project_id) )        $this->project_id = $project_id;
     72        if ( !empty($project) )           $this->project_id = $project;
    7373
    7474        $this->config_link = "<a href='{$_SERVER['REQUEST_URI']}&config=1'>Basecamp Settings</a>";
     
    501501        extract($args);
    502502        if ($default == 'project_id' ) {
    503             $default = (empty( $this->project->id)) ? '' : $this->project->id;
     503            $default = (empty( $this->project_id )) ? '' : $this->project_id;
    504504        }
    505505        ?>
  • basecamp-bug-report/trunk/classes/Basecamp.php

    r440618 r442492  
    326326                'Content-Type' => 'application/xml',
    327327            ),
     328            'sslverify' => false,
    328329            'method' => $method,
    329330            'redirection' => 0,
     
    345346                $response = wp_remote_get( $this->base.$url, $args );
    346347
    347                 // FB::group($url);
    348                 // FB::log($args, '$args');
    349                 // FB::log($params, '$params');
    350                 // FB::log($this->base.$url, '$this->base.$url');
    351                 // FB::log($response, '$response');
    352                 // FB::groupEnd();
    353 
    354                 if ( is_a($response, 'WP_Error')) throw new Exception($response->get_error_code());
     348                if ( is_a($response, 'WP_Error')) throw new Exception($response->get_error_code().': '.$response->get_error_message());
    355349
    356350                if ( $response['response']['code'] == 200 || $response['response']['code'] == 201 ) {
Note: See TracChangeset for help on using the changeset viewer.