From b9fbe554ef61ead60475ec648d5e0e7ee60a7008 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 8 Nov 2011 02:29:24 +0100 Subject: [PATCH] MDL-20534 lti: fix settings page, needs more work (B12) --- mod/lti/settings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/lti/settings.php b/mod/lti/settings.php index 11361b51a97..b90a31c1997 100644 --- a/mod/lti/settings.php +++ b/mod/lti/settings.php @@ -48,9 +48,9 @@ defined('MOODLE_INTERNAL') || die; -require_once($CFG->dirroot.'/mod/lti/locallib.php'); - if ($ADMIN->fulltree) { + require_once($CFG->dirroot.'/mod/lti/locallib.php'); + $configuredtoolshtml = ''; $pendingtoolshtml = ''; $rejectedtoolshtml = ''; @@ -63,7 +63,7 @@ if ($ADMIN->fulltree) { $action = get_string('action', 'lti'); $createdon = get_string('createdon', 'lti'); - $types = lti_filter_get_types($SITE->id); + $types = lti_filter_get_types(get_site()->id); $configuredtools = array_filter($types, function($value) { return $value->state == LTI_TOOL_STATE_CONFIGURED; @@ -178,7 +178,7 @@ if ($ADMIN->fulltree) { //]] "; - + global $PAGE; // TODO: Move to YUI3 ASAP $PAGE->requires->yui2_lib('tabview'); $PAGE->requires->yui2_lib('datatable');