mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-14591 - use new warning form element rather than static when configuring a broken portfolio plugin
This commit is contained in:
parent
fdc25313cf
commit
e6b8473257
1 changed files with 2 additions and 4 deletions
|
@ -1734,10 +1734,8 @@ final class portfolio_admin_form extends moodleform {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (isset($result) && is_string($result)) { // something went wrong, stop
|
||||
$mform->addElement('static', 'insane', '', get_string($result, 'portfolio_' . $this->plugin)); //, get_string($result, 'portfolio_' . $this->plugin));
|
||||
//throw new portfolio_exception($result, 'portfolio_' . $this->plugin, $CFG->wwwroot . '/' . $CFG->admin . '/portfolio.php');
|
||||
if (isset($result) && is_string($result)) { // something went wrong, warn...
|
||||
$mform->addElement('warning', 'insane', null, get_string($result, 'portfolio_' . $this->plugin));
|
||||
}
|
||||
|
||||
$mform->addElement('text', 'name', get_string('name'), 'maxlength="100" size="30"');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue