Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use Console_Color2 to prevent E_NOTICES #6

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 27, 2014
  1. @cweiske
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 7 deletions.
  1. +5 −5 Table.php
  2. +2 −2 package.xml
View
10 Table.php
@@ -151,7 +151,7 @@ class Console_Table
/**
* Whether the data has ANSI colors.
*
- * @var boolean
+ * @var Console_Color2
*/
var $_ansiColor = false;
@@ -176,9 +176,9 @@ function Console_Table($align = CONSOLE_TABLE_ALIGN_LEFT,
$this->_defaultAlign = $align;
$this->_border = $border;
$this->_padding = $padding;
- $this->_ansiColor = $color;
- if ($this->_ansiColor) {
- include_once 'Console/Color.php';
+ if ($color) {
+ include_once 'Console/Color2.php';
+ $this->_ansiColor = new Console_Color2();
}
if (!empty($charset)) {
$this->setCharset($charset);
@@ -781,7 +781,7 @@ function _strlen($str)
// Strip ANSI color codes if requested.
if ($this->_ansiColor) {
- $str = Console_Color::strip($str);
+ $str = $this->_ansiColor->strip($str);
}
// Cache expensive function_exists() calls.
View
4 package.xml
@@ -65,9 +65,9 @@ Use line breaks dependent on the current operating system.
</required>
<optional>
<package>
- <name>Console_Color</name>
+ <name>Console_Color2</name>
<channel>pear.php.net</channel>
- <min>0.0.4</min>
+ <min>0.1.2</min>
</package>
</optional>
</dependencies>
Something went wrong with that request. Please try again.