Merge branch 'w23_MDL-39503_m26_signup' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2013-06-05 16:10:39 +02:00
commit cd8e9b19c5
2 changed files with 12 additions and 0 deletions

View File

@ -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 File

@ -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.');
}