[-] FO : Fix bug #PSCFV-7825 removing import of grid_prestashop.css and displaying errors in AdminPerformances
This commit is contained in:
@@ -705,7 +705,7 @@ class FrontControllerCore extends Controller
|
|||||||
$this->addJS(_THEME_MOBILE_JS_DIR_.'jqm-docs.js');
|
$this->addJS(_THEME_MOBILE_JS_DIR_.'jqm-docs.js');
|
||||||
$this->addJS(_PS_JS_DIR_.'tools.js');
|
$this->addJS(_PS_JS_DIR_.'tools.js');
|
||||||
$this->addJS(_THEME_MOBILE_JS_DIR_.'global.js');
|
$this->addJS(_THEME_MOBILE_JS_DIR_.'global.js');
|
||||||
$this->addjqueryPlugin('fancybox');
|
$this->addjqueryPlugin('fancybox');
|
||||||
|
|
||||||
$this->addCSS(_THEME_MOBILE_CSS_DIR_.'jquery.mobile-1.3.0.min.css', 'all');
|
$this->addCSS(_THEME_MOBILE_CSS_DIR_.'jquery.mobile-1.3.0.min.css', 'all');
|
||||||
$this->addCSS(_THEME_MOBILE_CSS_DIR_.'jqm-docs.css', 'all');
|
$this->addCSS(_THEME_MOBILE_CSS_DIR_.'jqm-docs.css', 'all');
|
||||||
@@ -721,6 +721,7 @@ class FrontControllerCore extends Controller
|
|||||||
$this->setMobileMedia();
|
$this->setMobileMedia();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
$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');
|
||||||
|
|||||||
@@ -26,6 +26,13 @@
|
|||||||
|
|
||||||
class AdminPerformanceControllerCore extends AdminController
|
class AdminPerformanceControllerCore extends AdminController
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
$this->className = 'Configuration';
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
public function initFieldsetSmarty()
|
public function initFieldsetSmarty()
|
||||||
{
|
{
|
||||||
$this->fields_form[0]['form'] = array(
|
$this->fields_form[0]['form'] = array(
|
||||||
@@ -541,6 +548,7 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
{
|
{
|
||||||
|
|
||||||
/* PrestaShop demo mode */
|
/* PrestaShop demo mode */
|
||||||
if (_PS_MODE_DEMO_)
|
if (_PS_MODE_DEMO_)
|
||||||
{
|
{
|
||||||
@@ -617,6 +625,9 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if ($this->tabAccess['edit'] === '1')
|
if ($this->tabAccess['edit'] === '1')
|
||||||
{
|
{
|
||||||
|
$theme_cache_directory = _PS_ALL_THEMES_DIR_.$this->context->shop->theme_directory.'/cache/';
|
||||||
|
if (((bool)Tools::getValue('PS_CSS_THEME_CACHE') || (bool)Tools::getValue('PS_JS_THEME_CACHE')) && !is_writable($theme_cache_directory))
|
||||||
|
$this->errors[] = Tools::displayError(sprintf($this->l('To use Smart Cache directory %s must be writable.'), realpath($theme_cache_directory)));
|
||||||
if (!Configuration::updateValue('PS_CSS_THEME_CACHE', (int)Tools::getValue('PS_CSS_THEME_CACHE')) ||
|
if (!Configuration::updateValue('PS_CSS_THEME_CACHE', (int)Tools::getValue('PS_CSS_THEME_CACHE')) ||
|
||||||
!Configuration::updateValue('PS_JS_THEME_CACHE', (int)Tools::getValue('PS_JS_THEME_CACHE')) ||
|
!Configuration::updateValue('PS_JS_THEME_CACHE', (int)Tools::getValue('PS_JS_THEME_CACHE')) ||
|
||||||
!Configuration::updateValue('PS_HTML_THEME_COMPRESSION', (int)Tools::getValue('PS_HTML_THEME_COMPRESSION')) ||
|
!Configuration::updateValue('PS_HTML_THEME_COMPRESSION', (int)Tools::getValue('PS_HTML_THEME_COMPRESSION')) ||
|
||||||
@@ -665,7 +676,6 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
else
|
else
|
||||||
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
|
$this->errors[] = Tools::displayError('You do not have permission to edit this.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((bool)Tools::getValue('ciphering_up') && Configuration::get('PS_CIPHER_ALGORITHM') != (int)Tools::getValue('PS_CIPHER_ALGORITHM'))
|
if ((bool)Tools::getValue('ciphering_up') && Configuration::get('PS_CIPHER_ALGORITHM') != (int)Tools::getValue('PS_CIPHER_ALGORITHM'))
|
||||||
{
|
{
|
||||||
if ($this->tabAccess['edit'] === '1')
|
if ($this->tabAccess['edit'] === '1')
|
||||||
@@ -793,8 +803,6 @@ class AdminPerformanceControllerCore extends AdminController
|
|||||||
Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => ''));
|
Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => ''));
|
||||||
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4');
|
Tools::redirectAdmin(self::$currentIndex.'&token='.Tools::getValue('token').'&conf=4');
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return parent::postProcess();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxProcess()
|
public function ajaxProcess()
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
PRESTASHOP CSS
|
PRESTASHOP CSS
|
||||||
################################################################################################## */
|
################################################################################################## */
|
||||||
|
|
||||||
@import url("grid_prestashop.css");
|
|
||||||
|
|
||||||
/* ****************************************************************************
|
/* ****************************************************************************
|
||||||
reset
|
reset
|
||||||
**************************************************************************** */
|
**************************************************************************** */
|
||||||
|
|||||||
Reference in New Issue
Block a user