[*] FO : Check if grid_prestashop.css is available in theme before including

This commit is contained in:
gRoussac committed 2013-04-04 12:48:22 +02:00
1 parent 585cd016b0
commit df4e3a0000
1 file changed
+3 -1
+3 -1
View File
@@ -721,7 +721,9 @@ class FrontControllerCore extends Controller
$this->setMobileMedia(); $this->setMobileMedia();
return true; return true;
} }
$this->addCSS(_THEME_CSS_DIR_.'grid_prestashop.css', 'all');
if (Tools::file_exists_cache(_PS_ROOT_DIR_.Tools::str_replace_once(__PS_BASE_URI__, DIRECTORY_SEPARATOR, _THEME_CSS_DIR_.'grid_prestashop.css')))
$this->addCSS(_THEME_CSS_DIR_.'grid_prestashop.css', 'all');
$this->addCSS(_THEME_CSS_DIR_.'global.css', 'all'); $this->addCSS(_THEME_CSS_DIR_.'global.css', 'all');
$this->addjquery(); $this->addjquery();
$this->addjqueryPlugin('easing'); $this->addjqueryPlugin('easing');