custom link section

This commit is contained in:
aynsix
2020-05-27 11:27:18 +03:00
parent 1f1a2e9aa1
commit 71cc21bb43
2 changed files with 24 additions and 13 deletions

View File

@@ -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;
}
}