summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'class.portage.license.php')
-rw-r--r--class.portage.license.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/class.portage.license.php b/class.portage.license.php
index f269181..d983101 100644
--- a/class.portage.license.php
+++ b/class.portage.license.php
@@ -1,13 +1,14 @@
<?
- class PortageLicense extends PortageTree {
+ class PortageLicense {
private $name;
private $pdf;
function __construct($license = null) {
- parent::__construct();
+ global $hits;
+ $hits['license']++;
if($license)
$this->setLicense($license);
@@ -18,7 +19,9 @@
$str = basename($str);
- if(file_exists($this->getTree()."/licenses/$str")) {
+ $tree =& PortageTree::singleton();
+
+ if(file_exists($tree->getTree()."/licenses/$str")) {
if(substr($str, -4, 4) == ".pdf") {
$this->name = basename($str, ".pdf");