[-] IN : fix bad pathes
This commit is contained in:
@@ -30,8 +30,8 @@ function p15015_blockadvertising_extension()
|
||||
define('_PS_ROOT_DIR_', realpath(INSTALL_PATH.'/../'));
|
||||
|
||||
// Try to update with the extension of the image that exists in the module directory
|
||||
if (@file_exists(_PS_ROOT_DIR_.'modules/blockadvertising'))
|
||||
foreach (@scandir(_PS_ROOT_DIR_.'modules/blockadvertising') as $file)
|
||||
if (@file_exists(_PS_ROOT_DIR_.'/modules/blockadvertising'))
|
||||
foreach (@scandir(_PS_ROOT_DIR_.'/modules/blockadvertising') as $file)
|
||||
if (in_array($file, array('advertising.jpg', 'advertising.gif', 'advertising.png')))
|
||||
Db::getInstance()->execute('
|
||||
REPLACE INTO `'._DB_PREFIX_.'configuration` (name, value)
|
||||
|
||||
@@ -32,6 +32,6 @@ function update_genders_images()
|
||||
@rename(_PS_ROOT_DIR_.'/img/genders/Ms.jpg', _PS_ROOT_DIR_.'/img/genders/2.jpg');
|
||||
if (@file_exists(_PS_ROOT_DIR_.'/img/genders/Miss.jpg'))
|
||||
@rename(_PS_ROOT_DIR_.'/img/genders/Miss.jpg', _PS_ROOT_DIR_.'/img/genders/3.jpg');
|
||||
if (@file_exists(_PS_ROOT_DIR_.'genders/unknown.jpg'))
|
||||
if (@file_exists(_PS_ROOT_DIR_.'/img/genders/unknown.jpg'))
|
||||
@rename(_PS_ROOT_DIR_.'/img/genders/unknown.jpg', _PS_ROOT_DIR_.'/img/genders/Unknown.jpg');
|
||||
}
|
||||
Reference in New Issue
Block a user