Bad variable names (fixes last commit)

This commit is contained in:
Mikael Nordfeldth 2014-05-27 13:02:26 +02:00
parent 41773d3f67
commit 03fc02c26f
2 changed files with 4 additions and 4 deletions

View File

@ -319,7 +319,7 @@ class MagicEnvelope
$magic_env = self::signMessage($text, 'application/atom+xml', $magicsig);
assert($magicenv instanceof MagicEnvelope);
assert($magic_env instanceof MagicEnvelope);
return $magic_env;
}

View File

@ -65,15 +65,15 @@ class Salmon
try {
$client = new HTTPClient();
$client->setBody($envelope);
$client->setBody($envxml);
$response = $client->post($endpoint_uri, $headers);
} catch (HTTP_Request2_Exception $e) {
common_log(LOG_ERR, "Salmon ($class) post to $endpoint_uri failed: " . $e->getMessage());
return false;
}
if ($response->getStatus() != 200) {
common_log(LOG_ERR, "Salmon ($class) at $endpoint_uri returned status " .
$response->getStatus() . ': ' . $response->getBody());
common_log(LOG_ERR, sprintf('Salmon at %s returned status %s: %s',
$endpoint_uri, $response->getStatus(), $response->getBody()));
return false;
}