summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'class.portage.use_flag.php')
-rw-r--r--class.portage.use_flag.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/class.portage.use_flag.php b/class.portage.use_flag.php
index 3572660..6bef4c4 100644
--- a/class.portage.use_flag.php
+++ b/class.portage.use_flag.php
@@ -1,6 +1,6 @@
<?
- class PortageUseFlag extends PortageTree {
+ class PortageUseFlag {
private $name;
private $description;
@@ -11,9 +11,12 @@
function __construct($type = 'global', $name = "") {
- parent::__construct();
+ global $hits;
+ $hits['use_flag']++;
- $dir = $this->getTree()."/profiles/";
+ $tree =& PortageTree::singleton();
+
+ $dir = $tree->getTree()."/profiles/";
switch($type) {