Fix LTI plugin start page - refs #5333

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 43f1870868
commit 2c4dad032f
  1. 6
      plugin/ims_lti/start.php

@ -2,13 +2,11 @@
/* For license terms, see /license.txt */
require '../../main/inc/global.inc.php';
api_protect_course_script();
$toolId = isset($_GET['id']) ? intval($_GET['id']) : 0;
if (empty($toolId)) {
if (api_is_platform_admin()) {
header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/create.php');
header('Location: ' . api_get_path(WEB_PLUGIN_PATH) . 'ims_lti/list.php');
exit;
}
@ -16,6 +14,8 @@ if (empty($toolId)) {
exit;
}
api_protect_course_script();
$imsLtiPlugin = ImsLtiPlugin::create();
$tool = ImsLtiTool::fetch($toolId);

Loading…
Cancel
Save