29 lines
737 B
PHP
29 lines
737 B
PHP
<?php
|
|
/**
|
|
* 2012 - 2020 HiPresta
|
|
*
|
|
* MODULE Gallery
|
|
*
|
|
* @author HiPresta <support@hipresta.com>
|
|
* @copyright HiPresta 2020
|
|
* @license Addons PrestaShop license limitation
|
|
* @link https://hipresta.com
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* Don't use this module on several shops. The license provided by PrestaShop Addons
|
|
* for all its modules is valid only once for a single shop.
|
|
*/
|
|
|
|
function upgrade_module_1_0_5($module)
|
|
{
|
|
Db::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'higallery_image` MODIFY image VARCHAR(255)');
|
|
|
|
$languages = Language::getLanguages(false);
|
|
foreach ($languages as $lang) {
|
|
Configuration::updateValue('HI_GALLERY_PAGE_URL', array($lang['id_lang'] => 'gallery'));
|
|
}
|
|
|
|
return true;
|
|
}
|