From 71c3498475725fbe4cd775081ce9714fab51b7fb Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 23 Mar 2018 09:19:16 +0100 Subject: [PATCH] Fix URL Routing for actions Closes #283 Signed-off-by: Thomas Citharel --- app/classes/Framadate/Utils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php index 1c46dc2..1f1c97b 100644 --- a/app/classes/Framadate/Utils.php +++ b/app/classes/Framadate/Utils.php @@ -84,11 +84,13 @@ class Utils { * @param string $id The poll's id * @param bool $admin True to generate an admin URL, false for a public one * @param string $vote_id (optional) The vote's unique id + * @param null $action + * @param null $action_value * @return string The poll's URL. */ public static function getUrlSondage($id, $admin = false, $vote_id = '', $action = null, $action_value = null) { // URL-Encode $action_value - $action_value = $action_value ? null : Utils::base64url_encode($action_value); + $action_value = $action_value ? Utils::base64url_encode($action_value) : null; if (URL_PROPRE) { if ($admin === true) {