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

This commit is contained in:
gRoussac
2013-04-04 12:48:22 +02:00
parent 585cd016b0
commit df4e3a0000

View File

@@ -721,7 +721,9 @@ class FrontControllerCore extends Controller
$this->setMobileMedia();
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->addjquery();
$this->addjqueryPlugin('easing');