mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'w23_MDL-39503_m26_signup' of git://github.com/skodak/moodle
This commit is contained in:
commit
cd8e9b19c5
2 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue