Permalink
Browse files

Allowing tools be added even if none exist

  • Loading branch information...
1 parent a0eeacf commit 57e8c4752aadf3f8fb1245db3a12342117142baa @scriby scriby committed Sep 1, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 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">

0 comments on commit 57e8c47

Please sign in to comment.