forked from ZwiiCMS-Team/ZwiiCMS
fix merge completed
This commit is contained in:
parent
bb59346027
commit
89c86300d4
@ -2148,7 +2148,7 @@ class core extends common {
|
||||
|
||||
// Librairie googtrans ajouté dynamiquement
|
||||
if ( substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) !== 'fr'
|
||||
AND $this->getData(['config','translate','active']) === true
|
||||
AND $this->getData(['config','translate','activated']) === true
|
||||
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')) {
|
||||
$this->addOutput([
|
||||
'vendor' => array_merge($this->output['vendor'], ['i18n'])
|
||||
@ -2290,7 +2290,7 @@ class layout extends common {
|
||||
echo $this->core->output['content'];
|
||||
if ( substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) !== 'fr'
|
||||
AND $this->getData(['config','translate','showCredits']) === true
|
||||
AND $this->getData(['config','translate','active']) === true )
|
||||
AND $this->getData(['config','translate','activated']) === true )
|
||||
{
|
||||
echo '<div id="googTransLogo"><a href="//policies.google.com/terms#toc-content" data-lity><img src="core/module/translate/ressource/googtrans.png" /></a></div>';
|
||||
}
|
||||
@ -2977,7 +2977,7 @@ class layout extends common {
|
||||
* Affiche le cadre avec les drapeaux
|
||||
*/
|
||||
public function showi18n() {
|
||||
if ( $this->getData(['config','translate','active']) === true
|
||||
if ( $this->getData(['config','translate','activated']) === true
|
||||
AND $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD')) {
|
||||
echo '<div id="i18nContainer"><ul>';
|
||||
foreach (self::$i18nList as $key => $value) {
|
||||
|
@ -43,8 +43,9 @@ class init extends common {
|
||||
'captcha' => true
|
||||
],
|
||||
'translate' => [
|
||||
'active' => false,
|
||||
'showCredits' => false
|
||||
'activated' => false,
|
||||
'showCredits' => false,
|
||||
'autoDetect' => false
|
||||
],
|
||||
],
|
||||
'core' => [
|
||||
|
Loading…
Reference in New Issue
Block a user