summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2002-05-29 03:36:45 +0000
committerStig Bakken <ssb@php.net>2002-05-29 03:36:45 +0000
commitb09a0f678a80d82e5918b480e5fa522f0d436f11 (patch)
treed4043627e8c5adba91ba4616bc459adb57f7578b
parent41df5bcd5ab31f2e876e14b82bf1d80f996547ef (diff)
downloadphp-git-b09a0f678a80d82e5918b480e5fa522f0d436f11.tar.gz
* make PEAR_Common::log work with the new UI API
-rw-r--r--pear/PEAR/Common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php
index e1a6ba8713..b4e1ccca2f 100644
--- a/pear/PEAR/Common.php
+++ b/pear/PEAR/Common.php
@@ -130,6 +130,7 @@ class PEAR_Common extends PEAR
{
parent::PEAR();
$this->config = &PEAR_Config::singleton();
+ $this->debug = $this->config->get('verbose');
}
// }}}
@@ -210,7 +211,7 @@ class PEAR_Common extends PEAR
if ($this->debug >= $level) {
if (is_object($this->ui)) {
// XXX convert to new Frontend API?
- $this->ui->displayLine($msg);
+ $this->ui->outputData($msg, 'unknown');
} else {
print "$msg\n";
}