MDL-72856 lib: Only inject one robots/noindex in head of Additional HTML
This commit is contained in:
@@ -776,7 +776,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