File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -538,38 +538,11 @@ public function bootstrap($application)
538538 }
539539 });
540540
541- /*$application->view->on(View::EVENT_END_PAGE, function ($e) {
542-
543- if ($this->header_content) {
544- if (BackendComponent::getCurrent() && BackendComponent::getCurrent()->id == 'backendAdmin') {
545- return false;
546- }
547-
548- if (\Yii::$app->request->isPjax || \Yii::$app->request->isAjax) {
549- return false;
550- }
551-
552- $content = ob_get_clean();
553-
554- echo strtr($content, [
555- View::PH_HEAD => View::PH_HEAD . "\n\r" . $this->header_content,
556- ]);
557- }
558- });*/
559541
560542
561543 $ application ->response ->on (\yii \web \Response::EVENT_BEFORE_SEND , function (\yii \base \Event $ event ) {
562544 $ response = $ event ->sender ;
563545
564- /*if (!$this->header_content) {
565- return false;
566- }*/
567-
568- //TODO: это иногда дает ошибку нельзя тут оставлять
569- /*if (in_array(\Yii::$app->controller->module->id, ['debug', 'gii'])) {
570- return false;
571- }*/
572-
573546 if ($ this ->isGooglePageSpeedRequest ()) {
574547 return false ;
575548 }
You can’t perform that action at this time.
0 commit comments