title); $action = "file/save"; $title = $vars['entity']->title; $description = $vars['entity']->description; $tags = $vars['entity']->tags; if ($known_page_owner instanceof ElggGroup) { $pubtime = $vars['entity']->pubtime; if ($pubtime) { $access_id = $vars['entity']->future_acl; } else { $access_id = $vars['entity']->access_id; } } else { $access_id = $vars['entity']->access_id; } } else { $title = elgg_echo("blog:addpost"); $action = "file/upload"; $tags = ""; $title = ""; $description = ""; if (defined('ACCESS_DEFAULT')) $access_id = ACCESS_DEFAULT; else $access_id = 0; // Koolielu override if ($known_page_owner && ($known_page_owner instanceof ElggGroup)) { $access_id = $known_page_owner->group_acl; } $pubtime = ""; } ?>