Commit 802a49e1 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] Don't borke page without reloadAnyResponse

parent 1cd695e3
......@@ -3,7 +3,7 @@
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2021 Denis Chenu <http://www.sondages.pro>
* @license AGPL v3
* @version 0.2.0
* @version 0.2.1
*
* 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 by
......@@ -76,8 +76,8 @@ class TextEditOnDemand extends PluginBase
*/
public function addTextEditOnDemandAttributes()
{
if (empty(\reloadAnyResponse\Utilities::API) || version_compare(\reloadAnyResponse\Utilities::API,'4.1',"<")) {
$this->log("Unable to use TextEditOnDemand without reloadAnyResponse plugin",'error');
if (!Yii::app()->getConfig('reloadAnyResponseApi')) {
$this->log("Unable to use TextEditOnDemand without reloadAnyResponse 4.4 and up plugin",'error');
return;
}
$aAttributes = array(
......
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