check_feature('feature_blogs'); if (! isset($_REQUEST["postId"])) { $smarty->assign('msg', tra("No post indicated")); $smarty->display("error.tpl"); die; } $postId = $_REQUEST["postId"]; $post_info = $bloglib->get_post($postId); $blogId = $post_info["blogId"]; $tikilib->get_perm_object($postId, 'blog post'); $access->check_permission('tiki_p_read_blog', '', 'blog post', $postId); $blog_data = $bloglib->get_blog($blogId); if (! $blog_data) { $smarty->assign('msg', tra("Blog not found")); $smarty->display("error.tpl"); die; } $parsed_data = TikiLib::lib('parser')->parse_data($post_info["data"], ['is_html' => true]); $parsed_data = preg_replace('/\.\.\.page\.\.\./', '