From c8ea2c4572d0bf37dfb3a59c879a64201122edcd Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Wed, 13 Jul 2011 10:28:28 +0200 Subject: [PATCH] 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. --- mod/workshop/locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/workshop/locallib.php b/mod/workshop/locallib.php index 8f772e23a7e..9aeaa83faee 100644 --- a/mod/workshop/locallib.php +++ b/mod/workshop/locallib.php @@ -216,10 +216,11 @@ class workshop { * 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); }