summaryrefslogtreecommitdiff
path: root/sqlbox/index.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-22 11:15:58 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-22 11:15:58 +0100
commit0a8ddd6c1d9e827496b2b2d6ef466ebe55fe7183 (patch)
treea393f657408909d765b23721f84e0892f5a24a9a /sqlbox/index.php
parent215c5b14818dd4a6bb2e1f72a56902dbc7ce8143 (diff)
downloadsqltutor-plugin-0a8ddd6c1d9e827496b2b2d6ef466ebe55fe7183.tar.gz
sqltutor-plugin-0a8ddd6c1d9e827496b2b2d6ef466ebe55fe7183.tar.bz2
sqltutor-plugin-0a8ddd6c1d9e827496b2b2d6ef466ebe55fe7183.zip
sqlbox/index.php: Fix incorrect links to view.php
Diffstat (limited to 'sqlbox/index.php')
-rw-r--r--sqlbox/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/sqlbox/index.php b/sqlbox/index.php
index b0942e0..591e3fe 100644
--- a/sqlbox/index.php
+++ b/sqlbox/index.php
@@ -45,6 +45,7 @@ $PAGE->set_title(format_string($course->fullname));
$PAGE->set_heading(format_string($course->fullname));
$PAGE->set_context($coursecontext);
+
echo $OUTPUT->header();
if (! $sqlboxs = get_all_instances_in_course('sqlbox', $course)) {
@@ -66,12 +67,12 @@ if ($course->format == 'weeks') {
foreach ($sqlboxs as $sqlbox) {
if (!$sqlbox->visible) {
$link = html_writer::link(
- new moodle_url('/mod/sqlbox.php', array('id' => $sqlbox->coursemodule)),
+ new moodle_url('/mod/sqlbox/view.php', array('id' => $sqlbox->coursemodule)),
format_string($sqlbox->name, true),
array('class' => 'dimmed'));
} else {
$link = html_writer::link(
- new moodle_url('/mod/sqlbox.php', array('id' => $sqlbox->coursemodule)),
+ new moodle_url('/mod/sqlbox/view.php', array('id' => $sqlbox->coursemodule)),
format_string($sqlbox->name, true));
}