Development

Changeset 8894

You must first sign up to be able to contribute.

Changeset 8894

Show
Ignore:
Timestamp:
05/10/08 14:08:58 (1 year ago)
Author:
fabien
Message:

fixed application.log log messages in CLI

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugin/sfPearFrontendPlugin.class.php

    r5250 r8894  
    4242  public function _display($text) 
    4343  { 
    44     $this->dispatcher->notify(new sfEvent($this, 'application.log', array($this->splitLongLine($text)))); 
     44    $this->dispatcher->notify(new sfEvent($this, 'application.log', $this->splitLongLine($text))); 
    4545  } 
    4646 
    4747  protected function splitLongLine($text) 
    4848  { 
    49     $t = ''; 
     49    $lines = ''; 
    5050    foreach (explode("\n", $text) as $longline) 
    5151    { 
     
    5454        if ($line = trim($line)) 
    5555        { 
    56           $t .= $line; 
     56          $lines[] = $line; 
    5757        } 
    5858      } 
    5959    } 
    6060 
    61     return $t
     61    return $lines
    6262  } 
    6363} 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.