// Merge -> revision 9435
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9438 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -223,6 +223,13 @@ class AdminModules extends AdminTab
|
||||
/* Automatically copy a module from external URL and unarchive it in the appropriated directory */
|
||||
if (Tools::isSubmit('submitDownload'))
|
||||
{
|
||||
/* PrestaShop demo mode */
|
||||
if (_PS_MODE_DEMO_)
|
||||
{
|
||||
$this->_errors[] = Tools::displayError('This functionnality has been disabled.');
|
||||
return;
|
||||
}
|
||||
/* PrestaShop demo mode*/
|
||||
if ($this->tabAccess['add'] === '1')
|
||||
{
|
||||
if (Validate::isModuleUrl($url = Tools::getValue('url'), $this->_errors))
|
||||
@@ -238,6 +245,13 @@ class AdminModules extends AdminTab
|
||||
}
|
||||
if (Tools::isSubmit('submitDownload2'))
|
||||
{
|
||||
/* PrestaShop demo mode */
|
||||
if (_PS_MODE_DEMO_)
|
||||
{
|
||||
$this->_errors[] = Tools::displayError('This functionnality has been disabled.');
|
||||
return;
|
||||
}
|
||||
/* PrestaShop demo mode*/
|
||||
if ($this->tabAccess['add'] === '1')
|
||||
{
|
||||
if (!isset($_FILES['file']['tmp_name']) OR empty($_FILES['file']['tmp_name']))
|
||||
|
||||
Reference in New Issue
Block a user