Skip to content

Commit

Permalink
fixed issues 3/3 reported by eg
Browse files Browse the repository at this point in the history
  • Loading branch information
stasic committed Apr 2, 2012
1 parent 19369c5 commit a1d8e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion add_record.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
success(" <a href=\"edit.php?id=".$zone_rev_id."\"> " ._('The PTR-record was successfully added.')."</a>");
}
} else {
error(ERR_ZONE_NOT_EXIST);
error(sprintf(ERR_REVERS_ZONE_NOT_EXIST, $content_rev));
}
}
if (add_record($zone_id, $name, $type, $content, $ttl, $prio)) {
Expand Down
1 change: 1 addition & 0 deletions inc/error.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
define("ERR_UNKNOWN", _('Unknown error.'));
define("ERR_INV_EMAIL", _('Enter a valid email address.'));
define("ERR_ZONE_NOT_EXIST", _('There is no zone with this ID.'));
define("ERR_REVERS_ZONE_NOT_EXIST", _('There is no matching reverse-zone for: %s.'));
define("ERR_ZONE_TEMPL_NOT_EXIST", _('There is no zone template with this ID.'));
define("ERR_INSTALL_DIR_EXISTS", _('The <a href="install/">install/</a> directory exists, you must remove it first before proceeding.'));
define("ERR_ZONE_TEMPL_EXIST", _('Zone template with this name already exists, please choose another one.'));
Expand Down

0 comments on commit a1d8e37

Please sign in to comment.