@@ -36,11 +36,9 @@ |
||
| 36 | 36 | |
| 37 | 37 | if(!$this->controller && !$this->action){ |
| 38 | 38 | $this->action = "{action}"; |
| 39 | - } |
|
| 40 | - else if ($this->controller && !$this->action){ |
|
| 39 | + } else if ($this->controller && !$this->action){ |
|
| 41 | 40 | $this->action = "{controller}/{action}"; |
| 42 | - } |
|
| 43 | - else if (!$this->controller && $this->action) { |
|
| 41 | + } else if (!$this->controller && $this->action) { |
|
| 44 | 42 | $this->controller = Yii::$app->controller->id; |
| 45 | 43 | } |
| 46 | 44 | } |