[feladat @ 273]
authorrejo
Fri, 16 May 2008 10:43:57 +0000
changeset 167 0b992665ac4d
parent 166 def8799ec0d7
child 168 e675b676907a
[feladat @ 273] Renamed error ERR_DNS_MX_NS_TO_CNAME to more generic ERR_DNS_NON_ALIAS_TARGET. See also r270.
inc/dns.inc.php
inc/error.inc.php
--- a/inc/dns.inc.php	Fri May 16 10:42:36 2008 +0000
+++ b/inc/dns.inc.php	Fri May 16 10:43:57 2008 +0000
@@ -254,7 +254,7 @@
 	$response = $db->query($query);
 	if (PEAR::isError($response)) { error($response->getMessage()); return false; };
 	if ($response->numRows() > 0) {
-		error(ERR_DNS_MX_NS_TO_CNAME); return false;
+		error(ERR_DNS_NON_ALIAS_TARGET); return false;
 	}
 	return true;
 }
--- a/inc/error.inc.php	Fri May 16 10:42:36 2008 +0000
+++ b/inc/error.inc.php	Fri May 16 10:43:57 2008 +0000
@@ -80,7 +80,7 @@
 define("ERR_DNS_IPV6", _('This is not a valid IPv6 address.'));
 define("ERR_DNS_IPV4", _('This is not a valid IPv4 address.'));
 define("ERR_DNS_CNAME", _('This is not a valid CNAME. Did you assign an MX or NS record to the record?'));
-define("ERR_DNS_MX_NS_TO_CNAME", _('You can not point a NS or MX record to a CNAME record. Remove or rame the CNAME record first, or take another name.'));
+define("ERR_DNS_NON_ALIAS_TARGET", _('You can not point a NS or MX record to a CNAME record. Remove or rame the CNAME record first, or take another name.'));
 define("ERR_DNS_NS_HNAME", _('NS records must be a hostnames.'));
 define("ERR_DNS_MX_PRIO", _('A prio field should be numeric.'));
 define("ERR_DNS_SOA_NAME", _('Invalid value for name field of SOA record. It should be the name of the zone.'));