MDL-8015 improved file uploading
- changed file upload api in formslib - fixed blog attachments and related code in file.php - fixed glossary attachments - fixed embedded images in forum posts and blogs - only gif, png and jpeg; the problme was that svg were embedded using img tag which was wrong, the same applied to other picture formats unsupported by browsers (please note that student submitted svg should be never embedded in moodle page for security reasons) - other minor fixes
This commit is contained in:
@@ -235,6 +235,16 @@ define ('DEBUG_ALL', 2047);
|
||||
/** DEBUG_ALL with extra Moodle debug messages - (DEBUG_ALL | 32768) */
|
||||
define ('DEBUG_DEVELOPER', 34815);
|
||||
|
||||
/**
|
||||
* Blog access level constant declaration
|
||||
*/
|
||||
define ('BLOG_USER_LEVEL', 1);
|
||||
define ('BLOG_GROUP_LEVEL', 2);
|
||||
define ('BLOG_COURSE_LEVEL', 3);
|
||||
define ('BLOG_SITE_LEVEL', 4);
|
||||
define ('BLOG_GLOBAL_LEVEL', 5);
|
||||
|
||||
|
||||
/// PARAMETER HANDLING ////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user