From 89f68de4d75857a0ee5c348267ef8b5b4905a210 Mon Sep 17 00:00:00 2001
From: Yury Evtikhov <yurkeen@users.noreply.github.com>
Date: Thu, 8 Oct 2015 13:30:14 +0300
Subject: [PATCH] added 'priority' key to API url

Was getting API error about a missing 'priority' key while editing records.
---
 zones.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/zones.php b/zones.php
index caac9bf..2d57521 100644
--- a/zones.php
+++ b/zones.php
@@ -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) {