Skip to content
Snippets Groups Projects
Commit 58b68b8e authored by efalcy's avatar efalcy Committed by Patrick Barroca
Browse files

hotline #16604 : clean frbr link url

parent acda8ba0
3 merge requests!896Master,!795Wip test newopac3,!766Wip test newopac3
......@@ -26,5 +26,11 @@ foreach ($profils as $profil) {
$occurences += $countSite + $countAccueil;
}
foreach (Class_FRBR_Link::findAll() as $frbr) {
$frbr->setSource(Class_CmsUrlTransformer::removeHost($hostname,$basedir, $frbr->getSource()));
$frbr->setTarget(Class_CmsUrlTransformer::removeHost($hostname,$basedir, $frbr->getTarget()));
$frbr->save();
}
echo "Profils checked: $profils_checked\n";
echo "$occurences occurence(s) replaced.\n";
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment