Commit f7911bc9 by Alex-Code

Unused?

parent 72ff9c58
......@@ -152,7 +152,7 @@ class Pjax extends Widget
protected function requiresPjax()
{
$headers = Yii::$app->getRequest()->getHeaders();
return $headers->get('X-Pjax') && ($selector = $headers->get('X-Pjax-Container')) === '#' . $this->getId();
return $headers->get('X-Pjax') && $headers->get('X-Pjax-Container') === '#' . $this->getId();
}
/**
......
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