X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fnodes.inc;h=2eefeb264e43b0ad464a5f93b5efb7a67bb815e6;hb=ae13bc85329f5ad48117d76bb7cc6ac993da98c7;hp=10369d9f0008b9a8e8daa3b8c3bf283876f6d0c4;hpb=e909f81b8c7e4413f5788b36d8fbf2409ac11f46;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index 10369d9..2eefeb2 100644 --- a/wwwroot/inc/nodes.inc +++ b/wwwroot/inc/nodes.inc @@ -28,7 +28,7 @@ function addNode($params) { $parent_permissions=permissions::checkPermissions($parent_id); if (!$parent_permissions['w']) { $error=$error_messages['WRITE_PERMISSION_ERROR']; - log::log('add','error','WRITE_PERMISSION_ERROR'); + $logger->log('add','error','WRITE_PERMISSION_ERROR'); return false; } @@ -100,7 +100,7 @@ node_vector='".$params['node_vector']."'"; --$user_k; $db->query("update users set user_k='$user_k' where user_id='$params[node_creator]'"); $db->query("commit"); - log::log('add','ok',$id); + $logger->log('add','ok',$id); if ($_POST['code']) { $params['node_creator']=UBIK_ID; @@ -142,7 +142,7 @@ function processContent($node_content) { else { global $db,$htmlparse,$error; - if (!htmlparse::htmlparse($node_content)) { + if (!htmlparse->htmlparse($node_content)) { $error=$htmlparse; return false; }