mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
Merge branch 'MDL-41166-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
639910a75d
1 changed files with 1 additions and 1 deletions
|
@ -2442,7 +2442,7 @@ class assign {
|
||||||
$params = array('overflowdiv' => true, 'context' => $this->get_context());
|
$params = array('overflowdiv' => true, 'context' => $this->get_context());
|
||||||
$result .= format_text($finaltext, $format, $params);
|
$result .= format_text($finaltext, $format, $params);
|
||||||
|
|
||||||
if ($CFG->enableportfolios) {
|
if ($CFG->enableportfolios && has_capability('mod/assign:exportownsubmission', $this->context)) {
|
||||||
require_once($CFG->libdir . '/portfoliolib.php');
|
require_once($CFG->libdir . '/portfoliolib.php');
|
||||||
|
|
||||||
$button = new portfolio_add_button();
|
$button = new portfolio_add_button();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue