From 70cbcfe45423656dd450c24f4e0771b62f5c1c84 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Wed, 11 Feb 2015 14:42:34 +0100 Subject: [PATCH] MDL-49166 registration: now states whether or not site is registered --- admin/registration/register.php | 7 +++++++ lang/en/admin.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/admin/registration/register.php b/admin/registration/register.php index 1fd0e33efac..d334ac5d0c9 100644 --- a/admin/registration/register.php +++ b/admin/registration/register.php @@ -177,6 +177,13 @@ if (!empty($error)) { //some Moodle.org resitration explanation if ($huburl == HUB_MOODLEORGHUBURL) { + if (!empty($registeredhub->token)) { + $registrationmessage = get_string('pleaserefreshregistration', 'admin'); + } else { + $registrationmessage = get_string('registrationwarning', 'admin'); + } + echo $OUTPUT->notification($registrationmessage); + echo $OUTPUT->heading(get_string('registerwithmoodleorg', 'admin')); $renderer = $PAGE->get_renderer('core', 'register'); echo $renderer->moodleorg_registration_message(); diff --git a/lang/en/admin.php b/lang/en/admin.php index 29eabd09cf4..6950e8e1631 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -785,7 +785,7 @@ $string['performance'] = 'Performance'; $string['pgcluster'] = 'PostgreSQL Cluster'; $string['pgclusterdescription'] = 'PostgreSQL version/cluster parameter for command line operations. If you only have one postgresql on your system or you are not sure what this is, leave this blank.'; $string['phpfloatproblem'] = 'Detected unexpected problem in handling of PHP float numbers - {$a}'; -$string['pleaserefreshregistration'] = 'Your site has been registered with moodle.org, please consider updating the registration if significant changes happened since your last update, on {$a}'; +$string['pleaserefreshregistration'] = 'Your site has been registered. You can manually update your registration at any time. By default, the \'Site registration\' scheduled task will automatically update your registration periodically.'; $string['pleaseregister'] = 'Please register your site to remove this button'; $string['plugin'] = 'Plugin'; $string['plugins'] = 'Plugins';