From 6a4f2423ce715f8c03334e113ea369ac3ee3b84a Mon Sep 17 00:00:00 2001 From: David Siegfried Date: Thu, 27 Feb 2025 19:18:56 +0000 Subject: prevent warnings in help-tours, fixes #4667 Closes #4667 Merge request studip/studip!3478 --- app/controllers/tour.php | 14 +++++++------- app/views/tour/admin_conflicts.php | 8 ++++---- app/views/tour/admin_details.php | 6 +++--- app/views/tour/admin_overview.php | 4 ++-- app/views/tour/edit_step.php | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/controllers/tour.php b/app/controllers/tour.php index e507c4b..cf01e10 100644 --- a/app/controllers/tour.php +++ b/app/controllers/tour.php @@ -45,7 +45,7 @@ class TourController extends AuthenticatedController ]; $this->help_admin = $GLOBALS['perm']->have_perm('root') - || $GLOBALS['user']->getAuthenticatedUser()->hasRole('Hilfe-Administrator(in)'); + || $GLOBALS['user']->getAuthenticatedUser()->hasRole('Hilfe-Administrator(in)'); } /** @@ -738,12 +738,12 @@ class TourController extends AuthenticatedController } } $this->redirect('tour/admin_details?tour_name=' . Request::get('tour_name') - . '&tour_language=' . Request::get('tour_language') - . '&tour_description=' . Request::get('tour_description') - . '&tour_type=' . Request::get('tour_type') - . '&tour_access=' . Request::get('tour_access') - . '&tour_startpage=' . Request::get('tour_startpage') - . $roles); + . '&tour_language=' . Request::get('tour_language') + . '&tour_description=' . Request::get('tour_description') + . '&tour_type=' . Request::get('tour_type') + . '&tour_access=' . Request::get('tour_access') + . '&tour_startpage=' . Request::get('tour_startpage') + . $roles); } } $this->redirect('tour/admin_details/' . $this->tour->tour_id); diff --git a/app/views/tour/admin_conflicts.php b/app/views/tour/admin_conflicts.php index 6634dc6..4860287 100644 --- a/app/views/tour/admin_conflicts.php +++ b/app/views/tour/admin_conflicts.php @@ -9,16 +9,16 @@ use Studip\LinkButton; ?>

-
+ 0) : ?> - - - + + + diff --git a/app/views/tour/admin_details.php b/app/views/tour/admin_details.php index e0a0a9e..325f9c3 100644 --- a/app/views/tour/admin_details.php +++ b/app/views/tour/admin_details.php @@ -13,12 +13,12 @@ use Studip\Button, Studip\LinkButton; - +
- steps)) : ?> + steps)) : ?> - steps)) : ?> + steps)) : ?>
- + $tour) : ?> diff --git a/app/views/tour/edit_step.php b/app/views/tour/edit_step.php index 1995005..15d1bc1 100644 --- a/app/views/tour/edit_step.php +++ b/app/views/tour/edit_step.php @@ -13,7 +13,7 @@ use Studip\Button, Studip\LinkButton;
@@ -64,7 +64,7 @@ use Studip\Button, Studip\LinkButton;
- css_selector) : ?> + css_selector)) : ?>
@@ -180,7 +180,7 @@ use Studip\Button, Studip\LinkButton; '']) ?> - + url_for('tour/admin_overview'), []) ?> @@ -188,7 +188,7 @@ use Studip\Button, Studip\LinkButton;