Commit a4ab20a3fe9b5035ae2b5ba74e8b06232dd1b8f5
1 parent
f2841c60
123
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
| ... | ... | @@ -240,10 +240,6 @@ class PageController extends \controllers\ControllerBase |
| 240 | 240 | public function subtypeAction( $type, $subtype, $sort = 0, $page = '' ) |
| 241 | 241 | { |
| 242 | 242 | |
| 243 | - if($type==='test_about_ua') | |
| 244 | - $this->view->setMainView('about_ukr'); | |
| 245 | - elseif($type==='test_about_eng') | |
| 246 | - $this->view->setMainView('about_eng'); | |
| 247 | 243 | |
| 248 | 244 | if($this->session->get('special_users_id') != null) { |
| 249 | 245 | return $this->response->redirect('dealer/catalog' . $_SERVER["REQUEST_URI"]); |
| ... | ... | @@ -428,6 +424,12 @@ class PageController extends \controllers\ControllerBase |
| 428 | 424 | $this->view->setMainView('landing'); |
| 429 | 425 | elseif($subtype==='nasinnja_gazonnikh_trav_1c1') |
| 430 | 426 | $this->view->setMainView('landing_ukr'); |
| 427 | + | |
| 428 | + | |
| 429 | + if($type==='test_about_ua') | |
| 430 | + $this->view->setMainView('about_ukr'); | |
| 431 | + elseif($type==='test_about_eng') | |
| 432 | + $this->view->setMainView('about_eng'); | |
| 431 | 433 | |
| 432 | 434 | if(!empty($_GET['calc']))$this->view->setMainView('calc'); |
| 433 | 435 | $this->view->setVars([ | ... | ... |