Skip to content

Commit

Permalink
Update getItems.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hmagph committed Feb 6, 2016
1 parent df6d7b0 commit aaa5c69
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion getItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ function RetrieveItems()
$application_json = json_decode($application, true);
$applicationURI = $application_json["application_uris"][0];
//echo "\r\napplicationURI:" . $applicationURI;
$catalogHost = str_replace("-ui-", "-catalog-api-", $applicationURI);
if (substr( $applicationURI, 0, 3 ) === "ui-") {
$catalogHost = "catalog-api-" . substr($applicationURI, 3);
} else {
$catalogHost = str_replace("-ui-", "-catalog-api-", $applicationURI);
}
//echo "\r\ncatalogHost:" . $catalogHost;
$catalogRoute = "http://" . $catalogHost;
//echo "\r\ncatalogRoute:" . $catalogRoute;
Expand Down

0 comments on commit aaa5c69

Please sign in to comment.