diff --git a/app/controllers/questionnaire.php b/app/controllers/questionnaire.php index 4e24cc6cfe3e2d188a3ec2feb50982006426bc30..ecd48083381b5b9e28b77db70c087dd2cd8e074a 100644 --- a/app/controllers/questionnaire.php +++ b/app/controllers/questionnaire.php @@ -18,6 +18,7 @@ class QuestionnaireController extends AuthenticatedController class_exists('Vote'); class_exists('Test'); class_exists('Freetext'); + PageLayout::setHelpKeyword('Basis/Votings'); } public function overview_action() diff --git a/app/controllers/studip_controller.php b/app/controllers/studip_controller.php index 7fbad9c406bfede9ac3d073e8acb68e7400cf3c3..869d8a9dd05f65edfd9024e62ae603d7aab97397 100644 --- a/app/controllers/studip_controller.php +++ b/app/controllers/studip_controller.php @@ -125,6 +125,9 @@ abstract class StudipController extends Trails_Controller if (Request::isXhr() && !isset($this->response->headers['X-Title']) && PageLayout::hasTitle()) { $this->response->add_header('X-Title', rawurlencode(PageLayout::getTitle())); } + if (Request::isXhr() && !isset($this->response->headers['X-WikiLink']) && PageLayout::getHelpKeyword()) { + $this->response->add_header('X-WikiLink', format_help_url(PageLayout::getHelpKeyword())); + } if ($this->with_session) { page_close();