diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-10 14:34:41 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-02-10 14:34:41 +0000 |
| commit | 208b2f9f4e201c2924a98e9cbdb4c1c243f2294d (patch) | |
| tree | 33a961908db124f4744fcec6fe3c1ce497e532fc /app/controllers/module/module.php | |
| parent | 0be9a36780172990201f9b4251824a5a89a8062e (diff) | |
fix url generation, fixes #2156
Closes #2156
Merge request studip/studip!1392
Diffstat (limited to 'app/controllers/module/module.php')
| -rw-r--r-- | app/controllers/module/module.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/module/module.php b/app/controllers/module/module.php index 996ec76..f8c9917 100644 --- a/app/controllers/module/module.php +++ b/app/controllers/module/module.php @@ -914,7 +914,7 @@ class Module_ModuleController extends MVVController )); } } - $this->redirect($this->detailsURL($this->modulteil->modul_id . '/' . $this->modulteil->id)); + $this->redirect($this->detailsURL($this->modulteil->modul_id, $this->modulteil->id)); } } @@ -936,7 +936,7 @@ class Module_ModuleController extends MVVController $lvg_modulteil->delete(); } } - $this->redirect($this->detailsURL($modulteil->modul_id . '/' . $modulteil->id)); + $this->redirect($this->detailsURL($modulteil->modul_id, $modulteil->id)); } public function lvgruppe_action($modulteil_id, $lvgruppe_id = null) @@ -960,7 +960,7 @@ class Module_ModuleController extends MVVController $this->lvgruppe->getDisplayName()); } $this->cancel_url = $this->indexURL(); - $this->submit_url = $this->lvgruppeURL($this->modulteil->id . '/' . $this->lvgruppe->id); + $this->submit_url = $this->lvgruppeURL($this->modulteil->id, $this->lvgruppe->id); if (Request::submitted('store')) { CSRFProtection::verifyUnsafeRequest(); $stored = false; @@ -990,7 +990,7 @@ class Module_ModuleController extends MVVController } else { PageLayout::postInfo(_('Es wurden keine Änderungen vorgenommen.')); } - $this->relocate($this->detailsURL($this->modulteil->modul_id . '/' . $this->modulteil->id)); + $this->relocate($this->detailsURL($this->modulteil->modul_id, $this->modulteil->id)); return; } } @@ -1100,7 +1100,7 @@ class Module_ModuleController extends MVVController if (Request::isXhr()) { $this->response->add_header( 'X-Location', - $this->diffURL($new_module->id . '/' . $old_module->id) + $this->diffURL($new_module->id, $old_module->id) ); } $type_new = 1; |
