Commit 8d983006 authored by Denis Chenu's avatar Denis Chenu

[fix] Don't broke console command

parent 41817eb1
......@@ -7,7 +7,7 @@
* @copyright 2013 Denis Chenu <http://sondages.pro>
* @copyright 2013 Practice Lab <https://www.practicelab.com/>
* @license GPL v3
* @version 2.0.2
* @version 2.0.3
*
* 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
......@@ -63,6 +63,9 @@ class recomputeExpression extends PluginBase
public function afterPluginLoad()
{
if (Yii::app() instanceof CConsoleApplication) {
return;
}
if(strpos(Yii::app()->request->getRequestUri(),'admin/responses')){// Hack to register only on browse response
$surveyid = Yii::app()->request->getparam('surveyid');
$responseid = Yii::app()->request->getparam('id');
......
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