Skip to content
Snippets Groups Projects
Commit 30f16319 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

don't rely on parent::redirect() accepting multiple arguments, re #711

Merge request !721
parent a5ac0367
No related branches found
No related tags found
No related merge requests found
......@@ -1475,9 +1475,9 @@ class Course_TimesroomsController extends AuthenticatedController
public function redirect($to)
{
$arguments = func_get_args();
$url = call_user_func_array('parent::url_for', $arguments);
if (Request::isXhr()) {
$url = call_user_func_array('parent::url_for', $arguments);
$index_url = $this->action_url('index');
if (mb_strpos($url, $index_url) !== false) {
......@@ -1485,7 +1485,7 @@ class Course_TimesroomsController extends AuthenticatedController
}
}
return call_user_func_array('parent::redirect', $arguments);
parent::redirect($url);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment