diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-11-15 15:39:09 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-24 11:11:45 +0000 |
| commit | 4aa2263709aed90f4a7d5e99fd8eb0a0a9ac3225 (patch) | |
| tree | e417487a7eed0529bfde2b644d4eee149915fc66 /app/controllers/oer/mymaterial.php | |
| parent | b12e93045465c2e825e15ff52d0c268026f9b99d (diff) | |
Apply 13 suggestion(s) to 4 file(s)tic-00853
Diffstat (limited to 'app/controllers/oer/mymaterial.php')
| -rw-r--r-- | app/controllers/oer/mymaterial.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/oer/mymaterial.php b/app/controllers/oer/mymaterial.php index b3617b2..2d5b93c 100644 --- a/app/controllers/oer/mymaterial.php +++ b/app/controllers/oer/mymaterial.php @@ -148,9 +148,13 @@ class Oer_MymaterialController extends AuthenticatedController PageLayout::postSuccess(_('Lernmaterial erfolgreich gespeichert.')); if (Request::get('redirect_url')) { - if (Request::get('redirect_url') == 'files') { - $this->redirect(URLHelper::getURL('dispatch.php/course/files/index/' - . Request::get('dir') . '?cid=' . Request::get('cid'))); + if (Request::get('redirect_url') === 'files') { + $this->redirect( + URLHelper::getURL( + 'dispatch.php/course/files/index/' . Request::get('dir'), + ['cid' => Request::get('cid')] + ) + ); } else { $this->redirect(URLHelper::getURL(Request::get('redirect_url'), [ 'material_id' => $material->getId(), |
