mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
but fix for 5256
This commit is contained in:
parent
48e79fd146
commit
0b11c2b70f
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user