From 1d4eebb6d417fa945b16fbfc644ca71f8d18b062 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 24 Jan 2013 18:34:17 +0100 Subject: view.php: Remove unneded comments --- sqlbox/view.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'sqlbox') 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(); - - -- cgit