Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AvailabilitySchedule
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Osnabrück
Plugins
AvailabilitySchedule
Commits
736fa5d0
Commit
736fa5d0
authored
6 years ago
by
Till Glöggler
Browse files
Options
Downloads
Patches
Plain Diff
fix schedule for uos/4.2
parent
312be19f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AvailSchedule.class.php
+4
-4
4 additions, 4 deletions
AvailSchedule.class.php
templates/schedule.php
+1
-1
1 addition, 1 deletion
templates/schedule.php
with
5 additions
and
5 deletions
AvailSchedule.class.php
+
4
−
4
View file @
736fa5d0
...
...
@@ -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'
][
'h
eader
_l
ine
'
]
.
' - '
.
_
(
'Verfügbarkeitsplan'
));
PageLayout
::
setTitle
(
Context
::
getH
eader
L
ine
()
.
' - '
.
_
(
'Verfügbarkeitsplan'
));
Navigation
::
activateItem
(
'/course/members/conflicts'
);
$template_path
=
$this
->
getPluginPath
()
.
'/templates'
;
...
...
This diff is collapsed.
Click to expand it.
templates/schedule.php
+
1
−
1
View file @
736fa5d0
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment