From cd542ba6c4ad344f4298e62133d30d3d64635c9c Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Thu, 8 Jun 2017 07:38:29 +0300 Subject: [PATCH] Menu export is not a sub menu now --- lib.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib.php b/lib.php index 19b4530..9ddc153 100644 --- a/lib.php +++ b/lib.php @@ -827,18 +827,14 @@ function game_extend_settings_navigation($settings, $gamenode) { null, null, new pix_icon('i/item', '')); break; case 'hangman': - $url = new moodle_url('', null); - $exportnode = $gamenode->add( get_string('export', 'game'), $url, navigation_node::TYPE_SETTING, - null, null, new pix_icon('i/report', '')); - $url = new moodle_url('/mod/game/export.php', array( 'id' => $PAGE->cm->id, 'courseid' => $courseid, 'target' => 'html')); - $exportnode->add( get_string('export_to_html', 'game'), $url, navigation_node::TYPE_SETTING, + $gamenode->add( get_string('export_to_html', 'game'), $url, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/item', '')); $url = new moodle_url('/mod/game/export.php', array( 'id' => $PAGE->cm->id, 'courseid' => $courseid, 'target' => 'javame')); - $exportnode->add( get_string('export_to_javame', 'game'), $url, navigation_node::TYPE_SETTING, + $gamenode->add( get_string('export_to_javame', 'game'), $url, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/item', '')); break; case 'snakes':