| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 21 | protected function preFilter($filterChain) |
||
| 22 | { |
||
| 23 | /* @var $backend Backend */ |
||
| 24 | $backend = Yii::app()->backendManager->getCurrent(); |
||
| 25 | |||
| 26 | if (!$backend->isConnectable()) |
||
| 27 | { |
||
| 28 | if ($backend->macAddress) |
||
| 29 | $filterChain->controller->redirect(array('backend/waitForConnectivity')); |
||
| 30 | else |
||
| 31 | throw new CHttpException(500, Yii::t('Backend', 'The current backend is not connectable at the moment')); |
||
| 32 | } |
||
| 33 | |||
| 34 | return true; |
||
| 35 | } |
||
| 38 |