Skip to content
Snippets Groups Projects
Commit 828e8a44 authored by Elke Kreim's avatar Elke Kreim
Browse files

Fix deprecated error handling and fix spelling

parent 93622347
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ class course_request_hsh { ...@@ -172,7 +172,7 @@ class course_request_hsh {
} }
if (empty($properties->requester)) { if (empty($properties->requester)) {
if (!($this->properties = $DB->get_record('local_hsh_course_request', array('id' => $properties->id)))) { if (!($this->properties = $DB->get_record('local_hsh_course_request', array('id' => $properties->id)))) {
print_error('unknowncourserequest'); throw new \moodle_exception('unknowncourserequest');
} }
} else { } else {
$this->properties = $properties; $this->properties = $properties;
...@@ -525,10 +525,16 @@ function local_hsh_extend_navigation_course(navigation_node $parentnode, stdClas ...@@ -525,10 +525,16 @@ function local_hsh_extend_navigation_course(navigation_node $parentnode, stdClas
$settingsnode = navigation_node::create( $settingsnode = navigation_node::create(
$strfoo, $url, navigation_node::NODETYPE_LEAF, 'hsh', 'hsh', new pix_icon('i/export', $strfoo)); $strfoo, $url, navigation_node::NODETYPE_LEAF, 'hsh', 'hsh', new pix_icon('i/export', $strfoo));
$evasysexport_mavigation = get_string('evasysexport_navigationtext', 'local_hsh'); $evasysexport_navigation = get_string('evasysexport_navigationtext', 'local_hsh');
$evasysexport_url = new moodle_url('/local/hsh/participants_evasysexport.php', array('id' => $course->id)); $evasysexport_url = new moodle_url('/local/hsh/participants_evasysexport.php', array('id' => $course->id));
$evasysexport_settingsnode = navigation_node::create( $evasysexport_settingsnode = navigation_node::create(
$evasysexport_mavigation, $evasysexport_url, navigation_node::NODETYPE_LEAF, 'hsh1', 'hsh1', new pix_icon('i/export', $evasysexport_mavigation)); $evasysexport_navigation,
$evasysexport_url,
navigation_node::NODETYPE_LEAF,
'hsh1',
'hsh1',
new pix_icon('i/export', $evasysexport_navigation)
);
$reportnode = $parentnode->get('users'); $reportnode = $parentnode->get('users');
if (!empty($reportnode)) { if (!empty($reportnode)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment