mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-06-07 00:47:00 +03:00
added 'priority' key to API url
Was getting API error about a missing 'priority' key while editing records.
This commit is contained in:
parent
da932b0820
commit
89f68de4d7
1 changed files with 3 additions and 1 deletions
|
@ -152,6 +152,7 @@ function make_record($zone, $input) {
|
|||
$disabled = (bool) (isset($input['disabled']) && $input['disabled']);
|
||||
|
||||
$content = isset($input['content']) ? $input['content'] : '';
|
||||
$priority = isset($input['priority']) ? $input['priority'] : '';
|
||||
|
||||
if ($type === 'TXT') {
|
||||
# empty TXT records are ok, otherwise require surrounding quotes: "..."
|
||||
|
@ -176,7 +177,8 @@ function make_record($zone, $input) {
|
|||
'type' => $type,
|
||||
'name' => $name,
|
||||
'ttl' => $ttl,
|
||||
'content' => $content);
|
||||
'content' => $content,
|
||||
'priority' => $priority) ;
|
||||
}
|
||||
|
||||
function update_records($zone, $name_and_type, $inputs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue