| @@ 53-55 (lines=3) @@ | ||
| 50 | } | |
| 51 | } | |
| 52 | ||
| 53 |         if ($model->password && $model->password !== Yii::$app->request->post('password')) { | |
| 54 |             return $this->render('protected', ['media' => $model]); | |
| 55 | } | |
| 56 | ||
| 57 | if (is_file($this->view->theme->basePath . '/media/view-' | |
| 58 | . substr($model->mime_type, 0, strpos($model->mime_type, '/', 1)) . '.php') | |
| @@ 102-104 (lines=3) @@ | ||
| 99 | } | |
| 100 | } | |
| 101 | ||
| 102 |         if ($model->password && $model->password !== Yii::$app->request->post('password')) { | |
| 103 |             return $this->render('protected', ['post' => $model]); | |
| 104 | } | |
| 105 | ||
| 106 |         if (is_file($this->view->theme->basePath . '/post/view-' . $model->postType->name . '.php')) { | |
| 107 | $render = 'view-' . $model->postType->name . '.php'; | |