Skip to content

Commit

Permalink
Merge pull request #3 from melisplatform/develop
Browse files Browse the repository at this point in the history
Update MelisSiteActionController.php
  • Loading branch information
rbbrioso28 authored Oct 19, 2018
2 parents b614301 + 8ef5919 commit 4535cce
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/Controller/MelisSiteActionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,24 @@ public function onDispatch(MvcEvent $event)
$mainPageId = $sitePageId->site_main_page_id;
}
}

// Site language for site translations
$melisEnginLangService = $this->getServiceLocator()->get('MelisEngineLang');
$siteLang = $melisEnginLangService->getSiteLanguage();
$siteLangId = $siteLang['langId'];
$siteLangLocale = $siteLang['langLocale'];

$this->layout()->setVariables(array(
'idPage' => $this->idPage,
'renderType' => $this->renderType,
'renderMode' => $this->renderMode,
'pageLangId' => $this->pageLangId,
'pageLangLocale' => $this->pageLangLocale,
'pageBreadCrumb' => $pageBreadCrumb,
'mainPageId' => $mainPageId,
'pageTemplate' => $pageTemplate,
'idPage' => $this->idPage,
'renderType' => $this->renderType,
'renderMode' => $this->renderMode,
'pageLangId' => $this->pageLangId,
'pageLangLocale' => $this->pageLangLocale,
'pageBreadCrumb' => $pageBreadCrumb,
'mainPageId' => $mainPageId,
'pageTemplate' => $pageTemplate,
'siteLangId' => $siteLangId,
'siteLangLocale' => $siteLangLocale,
));

$this->oMelisPage = $datasPage;
Expand Down Expand Up @@ -119,4 +127,4 @@ public function trackDataOnDispatch()
return $data['result'];

}
}
}

0 comments on commit 4535cce

Please sign in to comment.