MDL-55289 workshop: Include repository/lib.php to use its constants
authorDavid Mudrák <david@moodle.com>
Mon, 25 Jul 2016 17:30:30 +0000 (19:30 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 28 Jul 2016 07:51:16 +0000 (09:51 +0200)
commit21d49a3f93e24f8dca99c0c339a60cc12eae778c
tree3bb470687ccb39f794c64d87de872a866c5cb134
parentd1a3ea62ef79f2d4d997e329a647535340ef15db
MDL-55289 workshop: Include repository/lib.php to use its constants

As a result of MDL-41556 (146893d6), the repository/lib.php was included
in submission.php so that its constant FILE_INTERNAL could be used in
field options. Recent development in MDL-50794 (996f7e8) moved the
options declaration to standalone methods but we forgot to check they
work in exsubmission.php too.

This patch moves the repository/lib.php inclusion to where the
library is actually needed.

Additionally it unifies how options are set for overall feedback content
and overall feedback attachment fields.
mod/workshop/locallib.php
mod/workshop/submission.php