Permalink
Browse files

Merge branch 'w23_MDL-39503_m25_signup' of git://github.com/skodak/mo…

…odle into MOODLE_25_STABLE
  • Loading branch information...
2 parents ef58046 + 65380ec commit 1127607bce385db74de59487fb24668dbbe800ea @stronk7 stronk7 committed Jun 5, 2013
Showing with 12 additions and 0 deletions.
  1. +6 −0 login/index.php
  2. +6 −0 login/signup.php
View
6 login/index.php
@@ -26,6 +26,12 @@
require('../config.php');
+// Try to prevent searching for sites that allow sign-up.
+if (!isset($CFG->additionalhtmlhead)) {
+ $CFG->additionalhtmlhead = '';
+}
+$CFG->additionalhtmlhead .= '<meta name="robots" content="noindex" />';
+
redirect_if_major_upgrade_required();
$testsession = optional_param('testsession', 0, PARAM_INT); // test session works properly
View
6 login/signup.php
@@ -26,6 +26,12 @@
require('../config.php');
+// Try to prevent searching for sites that allow sign-up.
+if (!isset($CFG->additionalhtmlhead)) {
+ $CFG->additionalhtmlhead = '';
+}
+$CFG->additionalhtmlhead .= '<meta name="robots" content="noindex" />';
+
if (empty($CFG->registerauth)) {
print_error('notlocalisederrormessage', 'error', '', 'Sorry, you may not use this page.');
}

0 comments on commit 1127607

Please sign in to comment.