This commit is contained in:
Huong Nguyen
2024-09-25 08:58:04 +07:00
+3 -1
View File
@@ -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)) {