Jump to content

Recommended Posts

Bonjour,

 

Dans blockcms.php, la variable smarty "contact_url" n'existe pas si l'affichage des colonnes droite et gauche est désactivé (dans le controller).

Ceci provoque une erreur lors de l’exécution du tpl .

 

 

Modification du code :

private function _prepareHook()
{
 $block_activation = Configuration::get('FOOTER_BLOCK_ACTIVATION');
 if (!$block_activation)
  return false;
 $cms_titles = BlockCMSModel::getCMSTitlesFooter();
 $display_footer = Configuration::get('PS_STORES_DISPLAY_FOOTER');
 $display_poweredby = Configuration::get('FOOTER_POWEREDBY');
 $footer_text = Configuration::get('FOOTER_CMS_TEXT_'.(int)$this->context->language->id);
 $this->smarty->assign(
  array(
'block' => 0,
/*modifie*/
'contact_url' => 'contact',
'cmslinks' => $cms_titles,
'display_stores_footer' => $display_footer,
'display_poweredby' => ((int)$display_poweredby === 1 || $display_poweredby === false),
'footer_text' => $footer_text
  )
 );
 return true;
}

 

 

http://forge.prestashop.com/browse/PNM-293

Edited by chantane (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...