Merge branch 'MDL-72856-main' of https://github.com/michael-milette/moodle
This commit is contained in:
@@ -272,7 +272,9 @@ class core_renderer extends renderer_base {
|
||||
if (!isset($CFG->additionalhtmlhead)) {
|
||||
$CFG->additionalhtmlhead = '';
|
||||
}
|
||||
$CFG->additionalhtmlhead .= '<meta name="robots" content="noindex" />';
|
||||
if (stripos($CFG->additionalhtmlhead, '<meta name="robots" content="noindex" />') === false) {
|
||||
$CFG->additionalhtmlhead .= '<meta name="robots" content="noindex" />';
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($CFG->additionalhtmlhead)) {
|
||||
|
||||
Reference in New Issue
Block a user