Author: peter
Date: 2008-12-12 12:06:31 -0800 (Fri, 12 Dec 2008)
New Revision: 1676
Modified:
trunk/qubit/lib/vendor/symfony/lib/command/sfAnsiColorFormatter.class.php
Log:
define constant. fixes Installer bug issue#453
Modified:
trunk/qubit/lib/vendor/symfony/lib/command/sfAnsiColorFormatter.class.php
===================================================================
--- trunk/qubit/lib/vendor/symfony/lib/command/sfAnsiColorFormatter.class.php
2008-12-12 08:18:38 UTC (rev 1675)
+++ trunk/qubit/lib/vendor/symfony/lib/command/sfAnsiColorFormatter.class.php
2008-12-12 20:06:31 UTC (rev 1676)
@@ -49,8 +49,10 @@
*
* @return string The styled text
*/
- public function format($text = '', $parameters = array(), $stream = STDOUT)
+ public function format($text = '', $parameters = array())
{
+ $stream = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w');
+
if (!$this->supportsColors($stream))
{
return $text;
@@ -97,7 +99,7 @@
public function formatSection($section, $text, $size = null, $style = 'INFO')
{
$style = !array_key_exists($style, $this->styles) ? 'INFO' : $style;
-
+
$width = 9 + strlen($this->format('', $style));
return sprintf(">> %-${width}s %s", $this->format($section, $style),
$this->excerpt($text, $size));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---