// small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17852 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -562,6 +562,13 @@ class AdminPerformanceControllerCore extends AdminController
|
||||
|
||||
public function postProcess()
|
||||
{
|
||||
/* PrestaShop demo mode */
|
||||
if (_PS_MODE_DEMO_)
|
||||
{
|
||||
$this->errors[] = Tools::displayError('This functionality has been disabled.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (Tools::isSubmit('submitAddServer'))
|
||||
{
|
||||
if ($this->tabAccess['add'] === '1')
|
||||
@@ -792,6 +799,10 @@ class AdminPerformanceControllerCore extends AdminController
|
||||
|
||||
public function ajaxProcess()
|
||||
{
|
||||
/* PrestaShop demo mode */
|
||||
if (_PS_MODE_DEMO_)
|
||||
die(Tools::displayError('This functionality has been disabled.'));
|
||||
/* PrestaShop demo mode*/
|
||||
if (Tools::isSubmit('action') && Tools::getValue('action') == 'test_server')
|
||||
{
|
||||
$host = pSQL(Tools::getValue('sHost', ''));
|
||||
|
||||
Reference in New Issue
Block a user