Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 00700702 authored by Kevin Duret's avatar Kevin Duret Committed by GitHub
Browse files

fix(wiki): avoid double migration of service wiki pages (#5883)

parent 48d5cc19
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ foreach ($pages as $page) {
$newName = 'Host : ' . $matches[1];
} elseif (preg_match('/Host-Template\:(.+)/', $page, $matches)) {
$newName = 'Host-Template : ' . $matches[1];
} elseif (preg_match('/Service\:(.+)/', $page, $matches)){
} elseif (preg_match('/Service\:(.+)/', $page, $matches) && !preg_match('/Service\:\s+\/\s+/', $page)) {
$name = explode(' ', $matches[1]);
if (count($name) > 1) {
$hostName = array_shift($name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment