Merge branch 'MDL-49319_backport_27' of https://github.com/andyjdavis/moodle into MOODLE_27_STABLE
This commit is contained in:
@@ -65,7 +65,7 @@ if (!empty($registeredhub) and $registeredhub->token == $token) {
|
||||
$registeredhub->hubname = $hubname;
|
||||
$registrationmanager->update_registeredhub($registeredhub);
|
||||
|
||||
//display notficiation message
|
||||
// Display notification message.
|
||||
$notificationmessage = $OUTPUT->notification(
|
||||
get_string('registrationconfirmedon', 'hub', $hublink), 'notifysuccess');
|
||||
echo $notificationmessage;
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL
|
||||
* @copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com
|
||||
*
|
||||
* On this page the administrator selects which hub he wants to register,
|
||||
* except for MOOCH. Admins can register with MOOCH with the top admin menu "Registration" link.
|
||||
* On this page the administrator can also unregister from any hubs, including MOOCH.
|
||||
* On this page the administrator selects which hub he wants to register (except for moodle.net)
|
||||
* Admins can register with moodle.net via the site admin menu "Registration" link.
|
||||
* On this page the administrator can also unregister from any hubs including moodle.net.
|
||||
*/
|
||||
|
||||
require('../../config.php');
|
||||
|
||||
@@ -36,13 +36,18 @@ class core_register_renderer extends plugin_renderer_base {
|
||||
* @return string
|
||||
*/
|
||||
public function moodleorg_registration_message() {
|
||||
$moodleorgurl = html_writer::link('http://moodle.org', 'Moodle.org');
|
||||
$moodleorgstatsurl = html_writer::link('http://moodle.org/stats', get_string('statsmoodleorg', 'admin'));
|
||||
$moochurl = html_writer::link(HUB_MOODLEORGHUBURL, get_string('moodleorghubname', 'admin'));
|
||||
$moodleorgregmsg = get_string('registermoodleorg', 'admin', $moodleorgurl);
|
||||
|
||||
$moodleorgstatslink = html_writer::link('http://moodle.net/stats',
|
||||
get_string('statsmoodleorg', 'admin'),
|
||||
array('target' => '_blank'));
|
||||
|
||||
$hublink = html_writer::link('https://moodle.net/mod/page/view.php?id=1',
|
||||
get_string('moodleorghubname', 'admin'),
|
||||
array('target' => '_blank'));
|
||||
|
||||
$moodleorgregmsg = get_string('registermoodleorg', 'admin', $hublink);
|
||||
$items = array(get_string('registermoodleorgli1', 'admin'),
|
||||
get_string('registermoodleorgli2', 'admin', $moodleorgstatsurl),
|
||||
get_string('registermoodleorgli3', 'admin', $moochurl));
|
||||
get_string('registermoodleorgli2', 'admin', $moodleorgstatslink));
|
||||
$moodleorgregmsg .= html_writer::alist($items);
|
||||
return $moodleorgregmsg;
|
||||
}
|
||||
|
||||
+2
-2
@@ -882,11 +882,11 @@ $string['quizattemptsupgradedmessage'] = 'In Moodle 2.1 there was a major upgrad
|
||||
$string['recaptchaprivatekey'] = 'ReCAPTCHA private key';
|
||||
$string['recaptchapublickey'] = 'ReCAPTCHA public key';
|
||||
$string['register'] = 'Register your site';
|
||||
$string['registermoodleorg'] = 'When you register your site with {$a}';
|
||||
$string['registermoodleorg'] = 'When you register your site';
|
||||
$string['registermoodleorgli1'] = 'You are added to a low-volume mailing list for important notifications such as security alerts and new releases of Moodle.';
|
||||
$string['registermoodleorgli2'] = 'Statistics about your site will be added to the {$a} of the worldwide Moodle community.';
|
||||
$string['registermoodleorgli3'] = 'Your site is also registered with Moodle.net ({$a}), allowing users with the publish courses capability (by default only managers) the option of publishing courses to Moodle.net.';
|
||||
$string['registerwithmoodleorg'] = 'Register with Moodle.org';
|
||||
$string['registerwithmoodleorg'] = 'Register your site';
|
||||
$string['registration'] = 'Registration';
|
||||
$string['registration_help'] = 'Registering your site with Moodle.org is recommended in order to receive security alert notifications, to contribute <a href="http://moodle.org/stats">Moodle usage statistics</a> and to be able to share courses on <a href="http://moodle.net/">Moodle.net</a>.';
|
||||
$string['registrationwarning'] = 'Your site is not yet registered.';
|
||||
|
||||
+2
-2
@@ -160,12 +160,12 @@ $string['registeredcourses'] = 'Registered courses';
|
||||
$string['registeredsites'] = 'Registered sites';
|
||||
$string['registrationinfo'] = 'Registration information';
|
||||
$string['registeredmoodleorg'] = 'Moodle.org ({$a})';
|
||||
$string['registeredon'] = 'Hubs with which you are registered';
|
||||
$string['registeredon'] = 'Where your site is registered';
|
||||
$string['registermoochtips'] = 'In order to register with Moodle.net, your site must be registered with Moodle.org.';
|
||||
$string['registersite'] = 'Register with {$a}';
|
||||
$string['registerwith'] = 'Register with a hub';
|
||||
$string['registrationconfirmed'] = 'Site registration confirmed';
|
||||
$string['registrationconfirmedon'] = 'You are now registered on the hub {$a}. You are now able to publish courses to this hub, using the "Publish" link in course administration menus.';
|
||||
$string['registrationconfirmedon'] = 'Thank you for registering your site. Registration information will be kept up to date by the \'Site registration\' scheduled task.';
|
||||
$string['registrationupdated'] = 'Registration has been updated.';
|
||||
$string['registrationupdatedfailed'] = 'Registration update failed.';
|
||||
$string['removefromhub'] = 'Remove from hub';
|
||||
|
||||
Reference in New Issue
Block a user