diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-24 18:34:17 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-24 18:34:17 +0100 |
commit | 1d4eebb6d417fa945b16fbfc644ca71f8d18b062 (patch) | |
tree | 96b5e820f9ed185c52632b18d73b1af9137ce279 | |
parent | 2df5a673112d41f2045720572fce7af74194f1fe (diff) | |
download | sqltutor-plugin-1d4eebb6d417fa945b16fbfc644ca71f8d18b062.tar.gz sqltutor-plugin-1d4eebb6d417fa945b16fbfc644ca71f8d18b062.tar.bz2 sqltutor-plugin-1d4eebb6d417fa945b16fbfc644ca71f8d18b062.zip |
view.php: Remove unneded comments
-rw-r--r-- | sqlbox/view.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php index 601459e..e522a75 100644 --- a/sqlbox/view.php +++ b/sqlbox/view.php @@ -52,8 +52,6 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id); add_to_log($course->id, 'sqlbox', 'view', "view.php?id={$cm->id}", $sqlbox->name, $cm->id); -/// Print the page header - $PAGE->set_url('/mod/sqlbox/view.php', array('id' => $cm->id)); $PAGE->set_title(format_string($sqlbox->name)); $PAGE->set_heading(format_string($course->fullname)); @@ -64,15 +62,12 @@ $PAGE->set_context($context); $PAGE->set_focuscontrol('id_sqlbox_query'); //$PAGE->add_body_class('sqlbox-'.$somevar); -// Output starts here echo $OUTPUT->header(); if ($sqlbox->intro) { // Conditions to show the intro can change to look for own settings or whatever echo $OUTPUT->box(format_module_intro('sqlbox', $sqlbox, $cm->id), 'generalbox mod_introbox', 'sqlboxintro'); } -// Replace the following lines with you own code - $form = new mod_sqlbox_form($PAGE->url->out(false)); $data = $form->get_data(); $current = $DB->get_record('sqlbox_solutions', array('sqlboxid' => $sqlbox->id, 'userid' => $USER->id)); @@ -112,7 +107,4 @@ if (isset($data->sqlbox_query) || $current) { echo $OUTPUT->heading("Incorrect!"); } -// Finish the page echo $OUTPUT->footer(); - - |