X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fnodes.inc;h=2f63e55265648747b7ef17714ac58858916eabac;hb=d9464c685bd249a07b65ed8a514ac29ab86da57e;hp=bdc3713fd0759bf918bd5df38fa577bb1fae69c2;hpb=e23557a6a6a9b7bf1a2f49772ed5856f2c45f084;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/nodes.inc b/wwwroot/inc/nodes.inc index bdc3713..2f63e55 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; @@ -132,7 +132,7 @@ function processContent($node_content) { require_once 'Text/Wiki.php'; // instantiate a Text_Wiki object with the default rule set - $wiki =& new Text_Wiki(); + $wiki = new Text_Wiki(); $node_content = $wiki->transform($node_content, 'Xhtml'); } @@ -142,7 +142,7 @@ function processContent($node_content) { else { global $db,$htmlparse,$error; - if (!htmlparse::htmlparse($node_content)) { + if (!htmlparser::htmlparse($node_content)) { $error=$htmlparse; return false; }