aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/consultation/admin.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-01 08:55:25 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-01 08:55:25 +0000
commite0111cd12fd58dafadd50969c7cbf77c87df5e14 (patch)
treed501170f3c784a6b35c04f06e50a0b9f19d54125 /app/controllers/consultation/admin.php
parent35202e1ee2a3564f00da8c382c02e6a02eb4be57 (diff)
add context title to page title, fixes #2228
Closes #2228 Merge request studip/studip!1459
Diffstat (limited to 'app/controllers/consultation/admin.php')
-rw-r--r--app/controllers/consultation/admin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php
index bad2421..016167e 100644
--- a/app/controllers/consultation/admin.php
+++ b/app/controllers/consultation/admin.php
@@ -21,7 +21,11 @@ class Consultation_AdminController extends ConsultationController
}
$this->activateNavigation('admin');
- PageLayout::setTitle(_('Verwaltung der Termine'));
+ if (Context::isCourse() || Context::isInstitute()) {
+ PageLayout::setTitle(Context::get()->getFullname() . ' - ' . _('Verwaltung der Termine'));
+ } else {
+ PageLayout::setTitle(_('Verwaltung der Termine'));
+ }
$this->range_config = $this->range->getConfiguration();