mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup
This commit is contained in:
parent
3c184e1464
commit
90658eefb0
24 changed files with 84 additions and 48 deletions
|
@ -858,7 +858,7 @@
|
|||
echo '<input type="button" onclick="checknone()" value="'.get_string('deselectall').'" /> ';
|
||||
$displaylist = array();
|
||||
$displaylist['messageselect.php'] = get_string('messageselectadd');
|
||||
if (has_capability('moodle/notes:manage', $context) && $context->id != $frontpagectx->id) {
|
||||
if (!empty($CFG->enablenotes) && has_capability('moodle/notes:manage', $context) && $context->id != $frontpagectx->id) {
|
||||
$displaylist['addnote.php'] = get_string('addnewnote', 'notes');
|
||||
$displaylist['groupaddnote.php'] = get_string('groupaddnewnote', 'notes');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue