From 5f4d5ff6751cd7e562a2dac6cbe32b691298e2ff Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Sun, 30 Jan 2011 23:12:25 +0100 Subject: [PATCH] huge part of PUT code was moved to backend/nodes.inc putNode function --- wwwroot/inc/eventz/put.inc | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/wwwroot/inc/eventz/put.inc b/wwwroot/inc/eventz/put.inc index c4105d4..06ec563 100644 --- a/wwwroot/inc/eventz/put.inc +++ b/wwwroot/inc/eventz/put.inc @@ -1,33 +1,18 @@ update($q); - - if (!$result) $db->query("insert into neurons set synapse_creator='$user_id',synapse_created=NOW(), -src='$chosen',dst='$nodeshell_id',dst_vector='$dst_vector',link='hard',synapse=1"); - - $db->query("update nodes set lastdescendant_created=NOW() where node_id='$nodeshell_id'"); + nodes::putNode($chosen,$nodeshell_id); } } ?> -- 2.30.2