Commit 43220375 authored by Denis Chenu's avatar Denis Chenu
Browse files

[fix] Disable web route

- If log have webroute and some plugin throw a log …
parent 43acf293
......@@ -19,6 +19,18 @@
*/
class RemoteControlHandler extends remotecontrol_handle
{
/**
* @inheritdoc
* Disable webroute else json returned can be broken
*/
public function __construct(AdminController $controller)
{
/* Deactivate web log */
foreach (Yii::app()->log->routes as $route) {
$route->enabled = $route->enabled && !($route instanceOf CWebLogRoute);
}
parent::__construct($controller);
}
/**
* RPC Routine to get information on user from extendRemoteControl plugin
*
......
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