Permalink
Browse files

MDL-28298 workshop: do not use a constant without explicit inclusion …

…of the library

Instead of including whole formslib just to get the constant defined, I
decided to hard-code the value and put the reference to the comment so
that eventual grep would spot it. Of course that is is not nice at all
but it's lesser of two evils imho.
  • Loading branch information...
1 parent a938306 commit d1c368e050e2816e517fe7e56cf58be4a43237b4 @mudrd8mz mudrd8mz committed Jul 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/workshop/locallib.php
@@ -216,10 +216,11 @@ public static function installed_allocators() {
* Returns an array of options for the editors that are used for submitting and assessing instructions
*
* @param stdClass $context
+ * @uses EDITOR_UNLIMITED_FILES hard-coded value for the 'maxfiles' option
* @return array
*/
public static function instruction_editors_options(stdclass $context) {
- return array('subdirs' => 1, 'maxbytes' => 0, 'maxfiles' => EDITOR_UNLIMITED_FILES,
+ return array('subdirs' => 1, 'maxbytes' => 0, 'maxfiles' => -1,
'changeformat' => 1, 'context' => $context, 'noclean' => 1, 'trusttext' => 0);
}

0 comments on commit d1c368e

Please sign in to comment.