removed version file path from location string

This commit is contained in:
Palma Solutions LTD
2018-05-05 13:16:18 +02:00
parent f63d271953
commit a73d7cb936

View File

@@ -191,8 +191,10 @@ foreach(glob("../{**/*,*}".$row[1], GLOB_BRACE) as $versionfile){
echo "<br />"; echo "<br />";
echo "<strong>".$row[0]." found:</strong><br />"; echo "<strong>".$row[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfile); $location = $versionfile;
$trim = str_replace($row[1], '', $location);
print_r ("location:".$trim);
} }
@@ -209,7 +211,9 @@ foreach(glob("../".$row[1], GLOB_BRACE) as $versionfile) {
echo "<strong>".$row[0]." found:</strong><br />"; echo "<strong>".$row[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfile); $location = $versionfile;
$trim = str_replace($row[1], '', $location);
print_r ("location:".$trim);
} }
} }
@@ -240,8 +244,9 @@ foreach(glob("../{**/*,*}".$raw[1], GLOB_BRACE) as $versionfiles){
echo "<strong>".$raw[0]." found:</strong><br />"; echo "<strong>".$raw[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfiles); $location = $versionfiles;
$trim = str_replace($raw[1], '', $location);
print_r ("location:".$trim);
} }
} }
@@ -258,8 +263,9 @@ foreach(glob("../".$raw[1], GLOB_BRACE) as $versionfiles) {
echo "<strong>".$raw[0]." found:</strong><br />"; echo "<strong>".$raw[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfiles); $location = $versionfiles;
} $trim = str_replace($raw[1], '', $location);
print_r ("location:".$trim); }
} }
} }
@@ -289,8 +295,9 @@ foreach(glob("../{**/*,*}".$rxw[1], GLOB_BRACE) as $versionfilex){
echo "<strong>".$rxw[0]." found:</strong><br />"; echo "<strong>".$rxw[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfilex); $location = $versionfilex;
$trim = str_replace($rxw[1], '', $location);
print_r ("location:".$trim);
} }
} }
@@ -308,8 +315,10 @@ foreach(glob("../".$rxw[1], GLOB_BRACE) as $versionfilex) {
echo "<strong>".$rxw[0]." found:</strong><br />"; echo "<strong>".$rxw[0]." found:</strong><br />";
echo implode("<br />", $matches[0]); echo implode("<br />", $matches[0]);
echo "<br />"; echo "<br />";
print_r ("location:".$versionfilex); $location = $versionfilex;
} $trim = str_replace($rxw[1], '', $location);
print_r ("location:".$trim);
}
} }
} }