Commit 3c93b92e066b3b7d168ab97b71a2858247d6722c

Authored by Eugeny Galkovskiy
1 parent a4ab20a3

123

Showing 1 changed file with 7 additions and 6 deletions   Show diff stats
src/app/frontend/controllers/PageController.php
@@ -234,6 +234,12 @@ class PageController extends \controllers\ControllerBase @@ -234,6 +234,12 @@ class PageController extends \controllers\ControllerBase
234 'action' => 'error404' 234 'action' => 'error404'
235 ]); 235 ]);
236 } 236 }
  237 +
  238 +
  239 + if($type==='test_about_ua')
  240 + $this->view->setMainView('about_ukr');
  241 + elseif($type==='test_about_eng')
  242 + $this->view->setMainView('about_eng');
237 } 243 }
238 244
239 245
@@ -424,12 +430,7 @@ class PageController extends \controllers\ControllerBase @@ -424,12 +430,7 @@ class PageController extends \controllers\ControllerBase
424 $this->view->setMainView('landing'); 430 $this->view->setMainView('landing');
425 elseif($subtype==='nasinnja_gazonnikh_trav_1c1') 431 elseif($subtype==='nasinnja_gazonnikh_trav_1c1')
426 $this->view->setMainView('landing_ukr'); 432 $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'); 433 +
433 434
434 if(!empty($_GET['calc']))$this->view->setMainView('calc'); 435 if(!empty($_GET['calc']))$this->view->setMainView('calc');
435 $this->view->setVars([ 436 $this->view->setVars([