$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;
}
--$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;
function processContent($node_content) {
global $node;
- include_once(SYSTEM_ROOT.'/inc/htmlparse.inc');
+ include_once(INCLUDE_DIR.'htmlparse.inc');
if ($node['template_id']==$node['node_id'] && $_POST['event']=='configure_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');
}
else {
global $db,$htmlparse,$error;
- if (!htmlparse::htmlparse($node_content)) {
+ if (!htmlparser::htmlparse($node_content)) {
$error=$htmlparse;
return false;
}