Skip to content
Snippets Groups Projects
Commit 736fa5d0 authored by Till Glöggler's avatar Till Glöggler
Browse files

fix schedule for uos/4.2

parent 312be19f
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,10 @@ class AvailSchedule extends StudipPlugin implements SystemPlugin
{
parent::__construct();
$sem_type = $_SESSION['SessSemName']['art_num'];
$sem_type = Context::getArtNum();
if (isset($sem_type) && !$GLOBALS['SEM_CLASS'][$GLOBALS['SEM_TYPE'][$sem_type]['class']]['studygroup_mode'] &&
Navigation::hasItem('/course/members') && $GLOBALS['perm']->have_studip_perm('tutor', $_SESSION['SessSemName'][1])) {
Navigation::hasItem('/course/members') && $GLOBALS['perm']->have_studip_perm('tutor', Context::getId())) {
$navigation = Navigation::getItem('/course/members');
$navigation->addSubNavigation('conflicts', new Navigation(_('Verfügbarkeit'), PluginEngine::getLink('availschedule/show')));
}
......@@ -39,13 +39,13 @@ class AvailSchedule extends StudipPlugin implements SystemPlugin
function show_action()
{
$seminar_id = Request::option('cid');
$seminar_id = Context::getId();
if (!$seminar_id || !$GLOBALS['perm']->have_studip_perm('tutor', $seminar_id)) {
die;
}
PageLayout::setTitle($GLOBALS['SessSemName']['header_line'] . ' - ' . _('Verfügbarkeitsplan'));
PageLayout::setTitle(Context::getHeaderLine() . ' - ' . _('Verfügbarkeitsplan'));
Navigation::activateItem('/course/members/conflicts');
$template_path = $this->getPluginPath() . '/templates';
......
......@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
?>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="blank" align="center">
<td class="blank">
<br/>
<?
$semester = new SemesterData();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment