Skip to content
Permalink
Browse files

fix tpl course description - refs BT#14289

  • Loading branch information...
aragonc committed May 4, 2018
1 parent 999c77b commit f65301747583489757aa9b2d345cd5f901d9499b
Showing with 2 additions and 11 deletions.
  1. +2 −11 main/course_description/course_description_controller.php
@@ -60,7 +60,7 @@ public function listing($history = false, $messages = [])
header("X-XSS-Protection: 0");
}
}
$actions = null;
$actionLeft = null;
// display actions menu
if ($is_allowed_to_edit) {
@@ -95,11 +95,9 @@ public function listing($history = false, $messages = [])
$i++;
}
}
$actions = Display::toolbarAction('toolbar',[0 => $actionLeft]);
}
$actions = Display::toolbarAction('toolbar',[0 => $actionLeft]);
$tpl = new Template(get_lang('CourseProgram'));
$tpl->assign('listing', $data);
$tpl->assign('is_allowed_to_edit', $is_allowed_to_edit);
@@ -109,13 +107,6 @@ public function listing($history = false, $messages = [])
$content = $tpl->fetch($templateName);
$tpl->assign('content', $content);
$tpl->display_one_col_template();
//return $data;
// render to the view
/*$this->view->set_data($data);
$this->view->set_layout('layout');
$this->view->set_template('listing');
$this->view->render();*/
}
/**

0 comments on commit f653017

Please sign in to comment.
You can’t perform that action at this time.