Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SondagesPro-LimeSurvey-plugin
recomputeExpression
Commits
dafd5e29
Commit
dafd5e29
authored
Jun 19, 2019
by
Denis Chenu
Browse files
[fix] Potential issue with publicurl, no need absolute url
parent
ad53db2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
recomputeExpression.php
View file @
dafd5e29
...
...
@@ -7,7 +7,7 @@
* @copyright 2013-2019 Denis Chenu <http://sondages.pro>
* @copyright 2013 Practice Lab <https://www.practicelab.com/>
* @license GPL v3
* @version 2.0.
4
* @version 2.0.
5
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -70,7 +70,7 @@ class recomputeExpression extends PluginBase
$surveyid
=
Yii
::
app
()
->
request
->
getparam
(
'surveyid'
);
$responseid
=
Yii
::
app
()
->
request
->
getparam
(
'id'
);
$aRecomputeVar
=
array
(
'jsonurl'
=>
$this
->
api
->
createUrl
(
'plugins/direct'
,
array
(
'plugin'
=>
'recomputeExpression'
,
'function'
=>
'recompute'
)),
'jsonurl'
=>
Yii
::
app
()
->
getController
()
->
createUrl
(
'plugins/direct'
,
array
(
'plugin'
=>
'recomputeExpression'
,
'function'
=>
'recompute'
)),
'surveyId'
=>
$surveyid
,
'responseId'
=>
$responseid
,
);
...
...
@@ -96,7 +96,7 @@ class recomputeExpression extends PluginBase
*
* @return json
**/
p
ublic
function
actionRecompute
()
p
rivate
function
actionRecompute
()
{
// Needed parameters sid: the survey id
$this
->
_iSurveyId
=
$iSurveyId
=
(
int
)
Yii
::
app
()
->
request
->
getQuery
(
'sid'
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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