Skip to content

Commit

Permalink
MDL-73891 admin: Display a notification in manage blocks
Browse files Browse the repository at this point in the history
An info notification has been added to the "Manage blocks"
page to warn admins about the "Unneeded blocks" theme setting.
  • Loading branch information
sarjona committed Mar 3, 2022
1 parent 1d99ba1 commit a9f15ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/blocks.php
Expand Up @@ -69,6 +69,7 @@
echo $OUTPUT->header();
echo $OUTPUT->heading($strmanageblocks);

echo $OUTPUT->notification(get_string('noteunneededblocks', 'admin'), 'info');
/// Main display starts here

/// Get and sort the existing blocks
Expand Down
2 changes: 1 addition & 1 deletion lang/en/admin.php
Expand Up @@ -894,6 +894,7 @@
$string['nonewsettings'] = 'No new settings were added during this upgrade.';
$string['nonexistentbookmark'] = 'The bookmark you requested does not exist.';
$string['nosupportedlogstore'] = 'No supported logstore found';
$string['noteunneededblocks'] = 'Note: Blocks set to show will not be listed in the \'Add a block\' menu in a course if they are specified in the theme setting \'Unneeded blocks\'.';
$string['maxtimelimit'] = 'Maximum time limit';
$string['maxtimelimit_desc'] = 'To restrict the maximum PHP execution time that Moodle will allow without any output being displayed, enter a value in seconds here. 0 means that Moodle default restrictions are used. If you have a front-end server with its own time limit, set this value lower to receive PHP errors in logs. Does not apply to CLI scripts.';
$string['moodleapp'] = 'Moodle app';
Expand Down Expand Up @@ -1557,4 +1558,3 @@
$string['coursepage'] = 'Course page';
$string['mediapluginswf'] = 'Enable .swf filter';
$string['mediapluginswfnote'] = 'As a default security measure, normal users should not be allowed to embed swf flash files.';

0 comments on commit a9f15ed

Please sign in to comment.