aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/shared
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-09-02 13:27:38 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2022-09-02 13:27:38 +0000
commit52e91615306676b1df0e40cfbd36f70568b7f8f5 (patch)
treed3837636f6019a85489e1c8031902ca6ddd29726 /app/controllers/shared
parent682e4fd2a6ce3e683f271e5685f5c4fe55d3b49e (diff)
Replace occurences of `url_for('/...')` with appropriate `action_url()`
Closes #1189 Merge request studip/studip!736
Diffstat (limited to 'app/controllers/shared')
-rw-r--r--app/controllers/shared/contacts.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/controllers/shared/contacts.php b/app/controllers/shared/contacts.php
index 5ab74eb..188ade4 100644
--- a/app/controllers/shared/contacts.php
+++ b/app/controllers/shared/contacts.php
@@ -184,7 +184,7 @@ class Shared_ContactsController extends MVVController
trim(Request::get('ansprechpartner_suche_parameter')),
Request::get('ansprechpartner_suche'), $this->filter);
}
- $this->redirect($this->url_for('/index'));
+ $this->redirect($this->action_url('index'));
}
/**
@@ -244,7 +244,7 @@ class Shared_ContactsController extends MVVController
// store filter
$this->reset_page();
$this->sessSet('filter', $this->filter);
- $this->redirect($this->url_for('/index'));
+ $this->redirect($this->action_url('index'));
}
public function reset_filter_action()
@@ -266,13 +266,13 @@ class Shared_ContactsController extends MVVController
if (MvvPerm::get('MvvContactRange')->havePermCreate()) {
$widget->addLink(
_('Neuen Ansprechpartner anlegen'),
- $this->url_for('/new_ansprechpartner'),
+ $this->action_url('new_ansprechpartner'),
Icon::create('add')
)->asDialog('size=auto');
}
$widget->addLink(
_('Liste exportieren (CSV)'),
- $this->url_for('/export_csv'),
+ $this->action_url('export_csv'),
Icon::create('export')
);
$sidebar->addWidget($widget);
@@ -311,7 +311,7 @@ class Shared_ContactsController extends MVVController
$search_term = $this->search_term ? $this->search_term : _('Ansprechpartner suchen');
$sidebar = Sidebar::get();
- $widget = new SearchWidget($this->url_for('/search'));
+ $widget = new SearchWidget($this->action_url('search'));
$widget->addNeedle(
_('Ansprechpartner suchen'),
'ansprechpartner_suche',
@@ -361,8 +361,8 @@ class Shared_ContactsController extends MVVController
'status' => $this->findStatusByIds(),
'selected_status' => $this->filter['mvv_contacts.contact_status'],
'status_array' => ['intern' => ['name' => _('Intern')], 'extern' => ['name' =>_('Extern')]],
- 'action' => $this->url_for('/set_filter'),
- 'action_reset' => $this->url_for('/reset_filter')
+ 'action' => $this->action_url('set_filter'),
+ 'action_reset' => $this->action_url('reset_filter')
]);
$sidebar = Sidebar::get();
@@ -510,7 +510,7 @@ class Shared_ContactsController extends MVVController
$this->render_nothing();
} else {
$this->response->add_header('X-Dialog-Close', 1);
- $this->response->add_header('X-Location', $this->url_for('/index', ['contact_id' => $mvv_contact->id]));
+ $this->response->add_header('X-Location', $this->action_url('index', ['contact_id' => $mvv_contact->id]));
}
return;
}
@@ -564,7 +564,7 @@ class Shared_ContactsController extends MVVController
$this->response->add_header('X-Dialog-Close', 1);
} else {
$this->response->add_header('X-Dialog-Close', 1);
- $this->response->add_header('X-Location', $this->url_for('/index', ['contact_id' => $contact_range->contact_id]));
+ $this->response->add_header('X-Location', $this->indexURL(['contact_id' => $contact_range->contact_id]));
}
$this->render_nothing();
}
@@ -666,7 +666,7 @@ class Shared_ContactsController extends MVVController
$this->range_type = $range_type;
if (!$this->range_type) {
- $this->redirect($this->url_for('/select_range_type',$user_id));
+ $this->redirect($this->action_url('select_range_type',$user_id));
return;
}