1
0
Fork 0

Merge remote-tracking branch 'padraic/pear-channelurimissingforwardslash'

pull/257/merge
Jordi Boggiano 2012-02-03 20:29:52 +01:00
commit e1a11302a8
1 changed files with 3 additions and 0 deletions

View File

@ -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');