// Fixed an icon problem in the BO module page
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15983 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1118,7 +1118,8 @@ abstract class ModuleCore
|
||||
if (isset($modaddons->img))
|
||||
{
|
||||
if (!file_exists('../img/tmp/'.md5($modaddons->name).'.jpg'))
|
||||
@copy($modaddons->img, '../img/tmp/'.md5($modaddons->name).'.jpg');
|
||||
if (!@copy($modaddons->img, '../img/tmp/'.md5($modaddons->name).'.jpg'))
|
||||
@copy('../img/404.gif', '../img/tmp/'.md5($modaddons->name).'.jpg');
|
||||
if (file_exists('../img/tmp/'.md5($modaddons->name).'.jpg'))
|
||||
$item->image = '../img/tmp/'.md5($modaddons->name).'.jpg';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user