Merge branch 'w23_MDL-39503_m25_signup' of git://github.com/skodak/moodle into MOODLE_25_STABLE
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user