Merge remote-tracking branch 'padraic/pear-channelurimissingforwardslash'
commit
e1a11302a8
|
@ -53,6 +53,9 @@ class PearRepository extends ArrayRepository
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
$categoryLink = $category->getAttribute("xlink:href");
|
$categoryLink = $category->getAttribute("xlink:href");
|
||||||
$categoryLink = str_replace("info.xml", "packages.xml", $categoryLink);
|
$categoryLink = str_replace("info.xml", "packages.xml", $categoryLink);
|
||||||
|
if ($categoryLink[0] != '/') {
|
||||||
|
$categoryLink = '/' . $categoryLink;
|
||||||
|
}
|
||||||
$packagesXML = $this->requestXml($this->url . $categoryLink);
|
$packagesXML = $this->requestXml($this->url . $categoryLink);
|
||||||
|
|
||||||
$packages = $packagesXML->getElementsByTagName('p');
|
$packages = $packagesXML->getElementsByTagName('p');
|
||||||
|
|
Loading…
Reference in New Issue