15 Commits

Author SHA1 Message Date
Mark Nelson
3774324174 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:26:13 +01:00
Marina Glancy
559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
Stephen Bourget
d31a1ad808 MDL-29368 Assignment: Fixed a fatal error caused by a missing include 2011-10-25 19:19:02 +02:00
David Mudrak
fd04c5bd87 MDL-27857 Export to portfolio support in the assignment module improved
Portfolio API code in the assignment module expected that the current
user is the author of the submission. Therefore the "Export to
portfolio" button did not work when the submission was viewed by a
teacher (eg at the page with the list of all submissions in the Advanced
upload assignment).

This patch introduces a new callback argument 'submissionid' that holds
explicit ID of the submission the export deals with. With it available,
we do not need to expect the current user is the author of the
submission.

The patch also cleans some strings used for portfolio callback
exceptions.
2011-10-03 10:15:39 +02:00
David Mudrak
b777c798b0 MDL-27857 Assignment does not use form tag to render portfolio export control widget
When this code was used as a part of the grading screen, the default
PORTFOLIO_ADD_FULL_FORM widget led to nested form elements. This patch replaces
the form widget with a plain text link that can be embedded safely.
2011-10-03 10:15:38 +02:00
Sam Hemelryk
6708a1f525 MDL-27810 portfolio: Added ->portfolioenabled checks before creating portfolio buttons to avoid initialising portfolio requirements 2011-06-21 10:35:53 +08:00
Dan Marsden
bce59524ce Plagiarism API MDL-13680 add plagiarism support for user submitted files - currently only added to single and advanced Assignment types - other modules to come in future. 2010-09-20 07:32:31 +00:00
Dongsheng Cai
a75a4b2472 NOBUG: plagiarism api require $cm and $course in assignment render 2010-09-20 03:43:47 +00:00
Petr Skoda
ede7252234 MDL-23784 finally getting rid of all legacy .gif and .png extensions, yay! fixing issues with incorrect & in JS code 2010-08-12 20:37:24 +00:00
aparup
2b9d57c484 Assignment MDL-22843
- fixed file manager using wrong file area when grading my own submission.
 - also removed extra slash in rendered file folder tree links.
2010-07-19 06:23:03 +00:00
aparup
be9608feaa Assignment MDL-23261
submission and response files display tree rendering fixed broken url and filearea is now passed down to sub dirs being rendered (fixes links)
2010-07-19 03:32:24 +00:00
Dongsheng Cai
b12ce9449f MDL-22609, fixed assignment files tree view 2010-07-14 09:41:13 +00:00
Dongsheng Cai
e525b6f125 MDL-22893, portfolio support 2010-07-13 07:55:47 +00:00
aparup
be534597c1 Assignment MDL-22893 fixed display of response files and the redirect when (advanced) uploading multiple response file. 2010-07-12 07:04:33 +00:00
Dongsheng Cai
ce2a1c4da9 MDL-22893, assignment module should use filepicker and filemanager 2010-07-09 09:21:52 +00:00