# HG changeset patch # User Nicholas Jillings # Date 1493118092 -3600 # Node ID 6a36f5777af9f7bb9734189d9795f85e5ae188a2 # Parent 7d619727130c7e1675739fcbe89623f3511e1d98 Alternative requestKey.php diff -r 7d619727130c -r 6a36f5777af9 php/requestKey.php --- a/php/requestKey.php Tue Apr 25 11:57:53 2017 +0100 +++ b/php/requestKey.php Tue Apr 25 12:01:32 2017 +0100 @@ -58,14 +58,13 @@ $doc_struct = new DOMDocument; $doc_struct->preserveWhiteSpace = false; $doc_struct->formatOutput = true; -$doc_struct->loadXML(""); +$doc_struct->loadXML(""); // Add the root if (file_exists($testURL)) { $test_proto_doc = new DOMDocument; $test_proto_doc->loadXML(file_get_contents($testURL, FILE_TEXT)); $test_proto = $test_proto_doc->documentElement; $test_proto = $doc_struct->importNode($test_proto, true); - $test_proto['key'] = $key; $doc_struct->documentElement->appendChild($test_proto); } // Add start time