// fix bug upload image
This commit is contained in:
1 parent
da04c00757
commit
7b5c3f7f5a
4 files changed
+12
-17
No files matched your search
@@ -87,7 +87,6 @@ class FileUploaderCore
|
||||
if($this->allowedExtensions && !in_array(strtolower($ext), $this->allowedExtensions))
|
||||
return array('error' => Tools::displayError('File has an invalid extension, it should be one of '). $these . '.');
|
||||
|
||||
|
||||
return $this->file->save();
|
||||
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ class HelperCore
|
||||
*/
|
||||
public function renderAssoShop($type = 'shop')
|
||||
{
|
||||
if (!Shop::isFeatureActive() || (!$this->id && $this->context->shop->getContextType() != Shop::CONTEXT_ALL))
|
||||
if (!Shop::isFeatureActive())
|
||||
return;
|
||||
|
||||
if ($type != 'shop' && $type != 'group_shop')
|
||||
|
||||
Reference in new issue
Block a user