1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

Merge pull request #85 from tekbreak/patch-1

Adding dot as subdomain separator
This commit is contained in:
Vincent Cassé 2018-12-05 21:35:48 +01:00 committed by GitHub
commit 88e67ac3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ try {
// If record include A, AAAA or CNAME for subdomain asked, we delete it // If record include A, AAAA or CNAME for subdomain asked, we delete it
if ( in_array( $record['fieldType'], array( 'A', 'AAAA', 'CNAME' ) ) ) { if ( in_array( $record['fieldType'], array( 'A', 'AAAA', 'CNAME' ) ) ) {
echo "We will delete field " . $record['fieldType'] . " for " . $record['subDomain'] . $record['zone'] . PHP_EOL; echo "We will delete field " . $record['fieldType'] . " for " . $record['subDomain'] . "." . $record['zone'] . PHP_EOL;
$conn->delete('/domain/zone/' . $domain . '/record/' . $recordId); $conn->delete('/domain/zone/' . $domain . '/record/' . $recordId);
} }
} }