Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allowing tools be added even if none exist

  • Loading branch information...
commit 57e8c4752aadf3f8fb1245db3a12342117142baa 1 parent a0eeacf
scriby scriby authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/lti/settings.php
8 mod/lti/settings.php
View
@@ -60,11 +60,11 @@ function blti_get_tool_table($tools, $id){
$action = get_string('action', 'lti');
$createdon = get_string('createdon', 'lti');
+ if($id == 'lti_configured'){
+ $html .= '<a style="margin-top:.25em" href="'.$CFG->wwwroot.'/mod/lti/typessettings.php?action=add&amp;sesskey='.$USER->sesskey.'">'.get_string('addtype', 'lti').'</a>';
+ }
+
if (!empty($tools)) {
- if($id == 'lti_configured'){
- $html .= '<a style="margin-top:.25em" href="'.$CFG->wwwroot.'/mod/lti/typessettings.php?action=add&amp;sesskey='.$USER->sesskey.'">'.get_string('addtype', 'lti').'</a>';
- }
-
$html .= <<<HTML
<div id="{$id}_container" style="margin-top:.5em;margin-bottom:.5em">
<table id="{$id}_tools">
Please sign in to comment.
Something went wrong with that request. Please try again.