but fix for 5256

This commit is contained in:
toyomoyo 2006-04-20 02:20:32 +00:00
parent 48e79fd146
commit 0b11c2b70f
2 changed files with 1 additions and 4 deletions

View File

@ -4,7 +4,6 @@ require_once('../config.php');
include_once('lib.php');
require_login();
$userid = optional_param('userid', 0, PARAM_INT);
$courseid = optional_param('courseid', SITEID, PARAM_INT);
$act = optional_param('act','',PARAM_ALPHA);
@ -108,8 +107,6 @@ if (($post = data_submitted( get_referer() )) && confirm_sesskey()) {
$post->body = '';
$post->format = $defaultformat;
$post->publishstate = 'draft';
$post->courseid = $courseid;
}
if ($editid) { // User is editing a post

View File

@ -122,7 +122,7 @@
global $USER, $CFG, $course, $ME;
$template['body'] = get_formatted_entry_body($blogEntry->summary, $blogEntry->format);
$template['body'] = get_formatted_entry_body(stripslashes_safe($blogEntry->summary), $blogEntry->format);
$template['title'] = '<a name="'. $blogEntry->subject .'"></a>';
//enclose the title in nolink tags so that moodle formatting doesn't autolink the text
$template['title'] .= '<span class="nolink">'. stripslashes_safe($blogEntry->subject);