Changeset 8894
- Timestamp:
- 05/10/08 14:08:58 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugin/sfPearFrontendPlugin.class.php
r5250 r8894 42 42 public function _display($text) 43 43 { 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))); 45 45 } 46 46 47 47 protected function splitLongLine($text) 48 48 { 49 $ t= '';49 $lines = ''; 50 50 foreach (explode("\n", $text) as $longline) 51 51 { … … 54 54 if ($line = trim($line)) 55 55 { 56 $ t .= $line;56 $lines[] = $line; 57 57 } 58 58 } 59 59 } 60 60 61 return $ t;61 return $lines; 62 62 } 63 63 }

