chantane Posted June 24, 2012 Share Posted June 24, 2012 (edited) 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 June 24, 2012 by chantane (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now