| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function smarty_addMessage($subject, $body, $flag = NotificationMessage::INFO, Log $log = null) |
||
| 20 | { |
||
| 21 | if (empty($log)) { |
||
| 22 | $log = $this->getLog(); |
||
| 23 | } |
||
| 24 | if (php_sapi_name() == 'cli') { |
||
| 25 | $log->log("[$flag] $subject: $body"); |
||
| 26 | } else { |
||
| 27 | parent::smarty_addMessage($subject, $body, $flag); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | } |
||
| 31 |