diff --git a/lib/Alchemy/Phrasea/Core/Configuration/RegistryFormManipulator.php b/lib/Alchemy/Phrasea/Core/Configuration/RegistryFormManipulator.php index 9ebd69c829..786e244c09 100644 --- a/lib/Alchemy/Phrasea/Core/Configuration/RegistryFormManipulator.php +++ b/lib/Alchemy/Phrasea/Core/Configuration/RegistryFormManipulator.php @@ -181,19 +181,14 @@ class RegistryFormManipulator ], 'custom-links' => [ [ - 'linkName' => 'Phraseanet store', - 'linkLanguage' => 'fr', - 'linkUrl' => 'https://alchemy.odoo.com/shop', - 'linkLocation' => 'help-menu', - 'linkOrder' => '1', - ], - [ - 'linkName' => 'Phraseanet store', - 'linkLanguage' => 'en', - 'linkUrl' => 'https://alchemy.odoo.com/en_US/shop', - 'linkLocation' => 'help-menu', - 'linkOrder' => '1', - ], + 'linkName' => 'Phraseanet store', + 'linkLanguage' => 'all', + 'linkUrl' => 'https://store.alchemy.fr', + 'linkLocation' => 'help-menu', + 'linkOrder' => 1, + 'linkBold' => false, + 'linkColor' => '' + ] ] ]; } diff --git a/lib/classes/patch/410alpha28a.php b/lib/classes/patch/410alpha28a.php index 5d1f5380fe..2ff20e4b32 100644 --- a/lib/classes/patch/410alpha28a.php +++ b/lib/classes/patch/410alpha28a.php @@ -153,6 +153,22 @@ class patch_410alpha28a implements patchInterface $app['conf']->set(['main', 'binaries', 'exiftool_timeout'], 60); } + // custom-link section, remove default store + $app['conf']->remove(['registry', 'custom-links', 0]); + $app['conf']->remove(['registry', 'custom-links', 1]); + + $customLinks = [ + 'linkName' => 'Phraseanet store', + 'linkLanguage' => 'all', + 'linkUrl' => 'https://store.alchemy.fr', + 'linkLocation' => 'help-menu', + 'linkOrder' => 1, + 'linkBold' => false, + 'linkColor' => '' + ]; + + $app['conf']->set(['registry', 'custom-links', 0], $customLinks); + return true; } }