Commit f2841c6009eea83574727c95bd7df71d84c4d83d
1 parent
d42386f5
123
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
@@ -101,10 +101,6 @@ class PageController extends \controllers\ControllerBase | @@ -101,10 +101,6 @@ class PageController extends \controllers\ControllerBase | ||
101 | 101 | ||
102 | unset($catalog['1']); | 102 | unset($catalog['1']); |
103 | 103 | ||
104 | - if($subtype==='test_about_ua') | ||
105 | - $this->view->setMainView('about_ukr'); | ||
106 | - elseif($subtype==='test_about_eng') | ||
107 | - $this->view->setMainView('about_eng'); | ||
108 | $meta_title = | 104 | $meta_title = |
109 | [ | 105 | [ |
110 | '1' => 'Професійне насіння поштою Україна | Купити насіння оптом Львів, Київ | Інтернет магазин насіння Semena.in.ua', | 106 | '1' => 'Професійне насіння поштою Україна | Купити насіння оптом Львів, Київ | Інтернет магазин насіння Semena.in.ua', |
@@ -243,6 +239,12 @@ class PageController extends \controllers\ControllerBase | @@ -243,6 +239,12 @@ class PageController extends \controllers\ControllerBase | ||
243 | 239 | ||
244 | public function subtypeAction( $type, $subtype, $sort = 0, $page = '' ) | 240 | public function subtypeAction( $type, $subtype, $sort = 0, $page = '' ) |
245 | { | 241 | { |
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 | + | ||
246 | if($this->session->get('special_users_id') != null) { | 248 | if($this->session->get('special_users_id') != null) { |
247 | return $this->response->redirect('dealer/catalog' . $_SERVER["REQUEST_URI"]); | 249 | return $this->response->redirect('dealer/catalog' . $_SERVER["REQUEST_URI"]); |
248 | } | 250 | } |