mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'w23_MDL-39503_m26_signup' of git://github.com/skodak/moodle
This commit is contained in:
commit
cd8e9b19c5
@ -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.');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user