Changeset 442492
- Timestamp:
- 09/23/2011 06:49:27 AM (15 years ago)
- Location:
- basecamp-bug-report/trunk
- Files:
-
- 2 edited
-
basecamp-bug-report.php (modified) (2 diffs)
-
classes/Basecamp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
basecamp-bug-report/trunk/basecamp-bug-report.php
r440619 r442492 70 70 if ( !empty($subdomain) ) $this->subdomain = $subdomain; 71 71 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; 73 73 74 74 $this->config_link = "<a href='{$_SERVER['REQUEST_URI']}&config=1'>Basecamp Settings</a>"; … … 501 501 extract($args); 502 502 if ($default == 'project_id' ) { 503 $default = (empty( $this->project ->id)) ? '' : $this->project->id;503 $default = (empty( $this->project_id )) ? '' : $this->project_id; 504 504 } 505 505 ?> -
basecamp-bug-report/trunk/classes/Basecamp.php
r440618 r442492 326 326 'Content-Type' => 'application/xml', 327 327 ), 328 'sslverify' => false, 328 329 'method' => $method, 329 330 'redirection' => 0, … … 345 346 $response = wp_remote_get( $this->base.$url, $args ); 346 347 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()); 355 349 356 350 if ( $response['response']['code'] == 200 || $response['response']['code'] == 201 ) {
Note: See TracChangeset
for help on using the changeset viewer.