fix for mobile

This commit is contained in:
Marion Muszynski 2017-05-04 16:49:50 +02:00
parent dcecac1122
commit b0e8f7c900
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,9 @@ if(($sponsor = Tools::getValue('sponsor')) && strlen($sponsor) > 12) {
$url = parse_url($_SERVER['REQUEST_URI']);
if(Tools::getIsset('lpes')) {
$lp = Tools::getValue('lpes');
Tools::redirect('?sponsor='.rawurlencode($cipherTool->encrypt('1|'.$email.'|')).(isset($lp)? '&lpes='.$lp: ''));
if( _THEME_NAME_ !== 'site_mobile') {
Tools::redirect('?sponsor='.rawurlencode($cipherTool->encrypt('1|'.$email.'|')).(isset($lp)? '&lpes='.$lp: ''));
}
}
if(Tools::getIsset('lp')) {

View File

@ -25,7 +25,7 @@
{*<span class="form_info">{l s='(5 characters min.)'}</span>*}
</p>
<p class="required referralprogram">
<p class="referralprogram">
<label for="referralprogram_lp">{l s='E-mail address of your sponsor' mod='landingpages'}</label>
<input type="text" size="52" maxlength="128" class="text" id="referralprogram_lp" name="invite" value="{if isset($sponsor_email)}{$sponsor_email|escape:'htmlall':'UTF-8'}{elseif isset($smarty.post.invite)}{$smarty.post.invite|escape:'htmlall':'UTF-8'}{elseif isset($referralprogram)}{$referralprogram|escape:'htmlall':'UTF-8'}{/if}" />
</p>