// [-] IN : Fixed language detection and help in the installer

This commit is contained in:
Damien Metzger
2013-08-05 11:22:55 +02:00
parent 7f4e4efbd8
commit 581dcec718
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class InstallControllerHttpConfigure extends InstallControllerHttp
$params = http_build_query(array(
'email' => $this->session->admin_email,
'method' => 'addMemberToNewsletter',
'language' => $this->session->lang,
'language' => $this->language->getLanguageIso(),
'visitorType' => 1,
'source' => 'installer'
));
+2 -1
View File
@@ -36,7 +36,8 @@
errors.push($(this).text().trim());
});
psuser_assistance.setStep('install_<?php echo addslashes($this->step) ?>', {'error':errors});
$('#iframe_help').attr('src', $('#iframe_help').attr('src') + '&errors=' + encodeURI(errors.join(', ')));
if (errors.length)
$('#iframe_help').attr('src', $('#iframe_help').attr('src') + '&errors=' + encodeURI(errors.join(', ')));
}
</script>
</body>
+1 -1
View File
@@ -73,7 +73,7 @@
</ol>
<?php if (@fsockopen('api.prestashop.com', 80, $errno, $errst, 3)): ?>
<iframe scrolling="no" style="height:210px;width:200px;border:none;margin-top:20px" id="iframe_help"
src="https://api.prestashop.com/iframe/install.php?step=<?php echo $this->step ?>&lang=<?php echo $this->language->getLanguageIso() ?>&country=<?php echo $this->session->shop_country ?>">
src="https://api.prestashop.com/iframe/install.php?step=<?php echo $this->step ?>&lang=<?php echo $this->language->getLanguageIso() ?><?php if (isset($this->session->shop_country)) echo '&country='.$this->session->shop_country; ?>">
<p><?php echo $this->l('Contact us!') ?><br /><?php echo $this->getPhone() ?></p>
</iframe>
<?php endif; ?>