Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
71c34984
Commit
71c34984
authored
Mar 23, 2018
by
Thomas Citharel
Browse files
Fix URL Routing for actions
Closes #283 Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
4631b8d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/classes/Framadate/Utils.php
View file @
71c34984
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment