diff options
author | Bot <bot@myigel.name> | 2019-09-08 02:25:49 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-12-08 02:12:56 +0100 |
commit | be39c63f46562eea173747d80cd91ac81e0b8e09 (patch) | |
tree | f4148db3009dff0dff99ce779798596f6b82a57b /includes/pages/user_questions.php | |
parent | 72123fcd31b612e35e5967c01faae9dd202756d8 (diff) |
Renamed redirect() to throwRedirect()
Diffstat (limited to 'includes/pages/user_questions.php')
-rw-r--r-- | includes/pages/user_questions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/pages/user_questions.php b/includes/pages/user_questions.php index 13f58b10..7654d540 100644 --- a/includes/pages/user_questions.php +++ b/includes/pages/user_questions.php @@ -38,7 +38,7 @@ function user_questions() ]); success(__('You question was saved.')); - redirect(page_link_to('user_questions')); + throw_redirect(page_link_to('user_questions')); } else { return page_with_title(questions_title(), [ error(__('Please enter a question!'), true) @@ -59,7 +59,7 @@ function user_questions() $question = Question::find($question_id); if (!empty($question) && $question->user_id == $user->id) { $question->delete(); - redirect(page_link_to('user_questions')); + throw_redirect(page_link_to('user_questions')); } else { return page_with_title(questions_title(), [ error(__('No question found.'), true) |