Commit fac21f4a authored by Chenu Denis's avatar Chenu Denis

[fix] Don't need absolute url

parent b9fef49f
......@@ -6,7 +6,7 @@
* @copyright 2016-2018 Denis Chenu <http://www.sondages.pro>
* @copyright 2016 Comité Régional du Tourisme de Bretagne <http://www.tourismebretagne.com>
* @license AGPL v3
* @version 2.0.1
* @version 2.0.2
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
......@@ -298,7 +298,7 @@ class arrayTextAdapt extends PluginBase {
}
$aOptions=array();
$aOption['jsonurl']=$this->api->createUrl('plugins/direct', array('plugin' => "cpVille",'function' => 'auto'));
$aOption['jsonurl']=Yii::app()->createUrl('plugins/direct', array('plugin' => "cpVille",'function' => 'auto'));
$sScript="arrayTextAdapt=".json_encode($aOption).";\n"."cpvilleinarray();\n";
Yii::app()->getClientScript()->registerScript("saisievillearray",$sScript,CClientScript::POS_END);
......
......@@ -8,7 +8,7 @@
<author>Denis Chenu</author>
<authorUrl>https://extensions.sondages.pro/questions-updating-and-managing/arraytextadapt/</authorUrl>
<supportUrl>https://www.sondages.pro/contact</supportUrl>
<version>2.0.1</version>
<version>2.0.2</version>
<license>GNU Affero General Public License v3.0</license>
<description><![CDATA[A LimeSurvey plugin to update array text question with some dropdpown.]]></description>
</metadata>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment