Browse Source

Do not render debug toolbar in ajax request.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
a69fa1bfed
  1. 2
      extensions/debug/Module.php

2
extensions/debug/Module.php

@ -85,7 +85,7 @@ class Module extends \yii\base\Module
public function renderToolbar($event)
{
if (!$this->checkAccess()) {
if (!$this->checkAccess() || Yii::$app->getRequest()->getIsAjax()) {
return;
}
$url = Yii::$app->getUrlManager()->createUrl($this->id . '/default/toolbar', [

Loading…
Cancel
Save