diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-07-11 18:43:12 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-07-11 18:43:12 +0200 |
commit | e6b48f0d645a72b2b4898f3ddc90fc8437f9b1e2 (patch) | |
tree | b19e07dda8f252b997190fefeeb222e807b88cc6 /class/FedoraPkgdb.php | |
parent | 50f2de59ed8ea3f41530fc4f06c12ae1613416ab (diff) |
add PkdDb link on zoom page, solves #58
Diffstat (limited to 'class/FedoraPkgdb.php')
-rw-r--r-- | class/FedoraPkgdb.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/class/FedoraPkgdb.php b/class/FedoraPkgdb.php index ee54119..9f2a094 100644 --- a/class/FedoraPkgdb.php +++ b/class/FedoraPkgdb.php @@ -37,10 +37,13 @@ class FedoraPkgdb extends FedoraClient { + private $suburl; function __construct (array $options=array()) { parent::__construct('https://admin.fedoraproject.org/pkgdb/', $options); + $this->suburl = 'acls/name/'; + $this->logDebug( 3, __CLASS__."::".__FUNCTION__ @@ -75,9 +78,14 @@ class FedoraPkgdb extends FedoraClient return $branches; } + function getPackageURL($name) + { + return $this->url.$this->suburl.urlencode($name); + } + function getPackageInfo($name, $refresh=false) { - $url="acls/name/".urlencode($name); + $url=$this->suburl.urlencode($name); $rep = ($refresh ? false : $this->cache->get($url, __CLASS__)); if ($rep) { $this->logDebug( |