diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2022-02-11 16:46:15 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-02-14 10:04:05 +0000 |
| commit | c3f4673faf6668d1ae13e4fc5b061ab46010a33d (patch) | |
| tree | 65444ef7c0b63cc93f78ea2ebc7f0c5cf0f27c40 /app/controllers/module | |
| parent | 79c13cfabc144fd3ea9111dc90e6d11f92cdb537 (diff) | |
adjust uses of relocate that are prone to fail, fixes #674
Diffstat (limited to 'app/controllers/module')
| -rw-r--r-- | app/controllers/module/module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/module/module.php b/app/controllers/module/module.php index 2c2fa35..b05f097 100644 --- a/app/controllers/module/module.php +++ b/app/controllers/module/module.php @@ -990,7 +990,7 @@ class Module_ModuleController extends MVVController } else { PageLayout::postInfo(_('Es wurden keine Änderungen vorgenommen.')); } - $this->relocate('/details/' . $this->modulteil->modul_id . '/' . $this->modulteil->id); + $this->relocate($this->url_for('/details/' . $this->modulteil->modul_id . '/' . $this->modulteil->id)); return; } } @@ -1079,7 +1079,7 @@ class Module_ModuleController extends MVVController $this->variante = $this->modul->modul_variante; } else { PageLayout::postError(_('Unbekanntes Modul')); - $this->relocate('/index'); + $this->relocate($this->url_for('/index')); } } |
