diff --git a/classes/Module.php b/classes/Module.php index 00fe0e32f..a11257176 100644 --- a/classes/Module.php +++ b/classes/Module.php @@ -1221,31 +1221,6 @@ abstract class ModuleCore return $result; } - public static function displayTemplate($file, $template, $cacheId = null, $compileId = null) - { - $context = Context::getContext(); - - if (($overloaded = self::_isTemplateOverloadedStatic(basename($file, '.php'), $template)) === NULL) - $result = Tools::displayError('No template found for module').' '.basename($file,'.php'); - else - { - $context->smarty->assign(array( - 'module_dir' => __PS_BASE_URI__.'modules/'.basename($file, '.php').'/', - 'module_template_dir' => ($overloaded ? _THEME_DIR_ : __PS_BASE_URI__).'modules/'.basename($file, '.php').'/' - )); - - $smarty_subtemplate = $context->smarty->createTemplate( - ($overloaded ? _PS_THEME_DIR_.'modules/'.basename($file, '.php') : _PS_MODULE_DIR_.basename($file, '.php')).'/'.$template, - $cacheId, - $compileId, - $context->smarty - ); - - $result = $smarty_subtemplate->fetch(); - } - return $result; - } - /** * Get realpath of a template of current module (check if template is overriden too) * diff --git a/modules/blockcategories/blockcategories.php b/modules/blockcategories/blockcategories.php index 2baf16bee..c0329b5c6 100644 --- a/modules/blockcategories/blockcategories.php +++ b/modules/blockcategories/blockcategories.php @@ -87,7 +87,7 @@ class BlockCategories extends Module Configuration::updateValue('BLOCK_CATEG_NBR_COLUMN_FOOTER', $nbrColumns); Configuration::updateValue('BLOCK_CATEG_SORT_WAY', Tools::getValue('BLOCK_CATEG_SORT_WAY')); Configuration::updateValue('BLOCK_CATEG_SORT', Tools::getValue('BLOCK_CATEG_SORT')); - + $this->_clearBlockcategoriesCache(); $output .= '
'.$this->l('Confirmation').''.$this->l('Settings updated').'
'; } @@ -121,7 +121,7 @@ class BlockCategories extends Module - - + -