Bugfix
This commit is contained in:
parent
2d4ce38cbd
commit
3c14d03fed
|
@ -68,12 +68,12 @@ class block_mytreestudyplan extends \block_base {
|
|||
|
||||
|
||||
if($teachermode){
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>";
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/view-plans.php'>".get_string("view_plan","local_treestudyplan")."</a>";
|
||||
if(has_capability("local/treestudyplan:editstudyplan",$systemcontext)){
|
||||
$this->content->footer .= " <a class='btn btn-primary' href='{$invite_url}'>".get_string("cfg_plans","local_treestudyplan")."</a>";
|
||||
}
|
||||
} else if (count($mystudyplans) > 0) {
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudylan/edit-plans.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
|
||||
$this->content->footer = "<a class='btn btn-primary' href='/local/treestudyplan/edit-plans.php' id='manage_invites'><i class='fa fa-share'></i>{$invite_text}</a>";
|
||||
}
|
||||
|
||||
return $this->content;
|
||||
|
|
Loading…
Reference in New Issue
Block a user