This commit is contained in:
Yury Evtikhov 2015-10-08 11:23:01 +00:00
commit 5647287640

View file

@ -152,6 +152,7 @@ function make_record($zone, $input) {
$disabled = (bool) (isset($input['disabled']) && $input['disabled']); $disabled = (bool) (isset($input['disabled']) && $input['disabled']);
$content = isset($input['content']) ? $input['content'] : ''; $content = isset($input['content']) ? $input['content'] : '';
$priority = isset($input['priority']) ? $input['priority'] : '';
if ($type === 'TXT') { if ($type === 'TXT') {
# empty TXT records are ok, otherwise require surrounding quotes: "..." # empty TXT records are ok, otherwise require surrounding quotes: "..."
@ -176,7 +177,8 @@ function make_record($zone, $input) {
'type' => $type, 'type' => $type,
'name' => $name, 'name' => $name,
'ttl' => $ttl, 'ttl' => $ttl,
'content' => $content); 'content' => $content,
'priority' => $priority) ;
} }
function update_records($zone, $name_and_type, $inputs) { function update_records($zone, $name_and_type, $inputs) {