diff --git a/admin/registration/register.php b/admin/registration/register.php index d7283e36c9c..13bf40c3cb2 100644 --- a/admin/registration/register.php +++ b/admin/registration/register.php @@ -45,7 +45,7 @@ $huburl = optional_param('huburl', '', PARAM_URL); $password = optional_param('password', '', PARAM_TEXT); $hubname = optional_param('hubname', '', PARAM_TEXT); if (empty($huburl) or !confirm_sesskey()) { - throw new moodle_exception('cannotaccessthispage'); + throw new moodle_exception('missingparameter'); } /* TO DO @@ -158,4 +158,4 @@ $siteregistrationform->display(); -echo $OUTPUT->footer(); \ No newline at end of file +echo $OUTPUT->footer(); diff --git a/course/publish/metadata.php b/course/publish/metadata.php index 2d64010544f..e45a1f16a36 100644 --- a/course/publish/metadata.php +++ b/course/publish/metadata.php @@ -50,7 +50,7 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, $huburl = optional_param('huburl', '', PARAM_URL); $hubname = optional_param('hubname', '', PARAM_TEXT); if (empty($huburl) or !confirm_sesskey()) { - throw new moodle_exception('cannotaccessthispage'); + throw new moodle_exception('missingparameter'); } //set the publication form @@ -71,4 +71,4 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, echo $OUTPUT->footer(); -} \ No newline at end of file +} diff --git a/course/publish/publish.php b/course/publish/publish.php index ea00fa7f25b..95ea168c5c0 100644 --- a/course/publish/publish.php +++ b/course/publish/publish.php @@ -54,7 +54,7 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, $huburl = optional_param('huburl', '', PARAM_URL); $hubname = optional_param('hubname', '', PARAM_TEXT); if (empty($huburl) or !confirm_sesskey()) { - throw new moodle_exception('cannotaccessthispage'); + throw new moodle_exception('missingparameter'); } $advertise = optional_param('advertise', false, PARAM_BOOL); @@ -174,4 +174,4 @@ if (has_capability('moodle/course:publish', get_context_instance(CONTEXT_COURSE, } echo $OUTPUT->footer(); -} \ No newline at end of file +}