diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:07:14 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 11:07:14 +0200 |
commit | 0572afd29a1ef117873935b9ca5e8f1a0676727b (patch) | |
tree | 43f22759ed0166dc870a599ded3261bd5ebc5717 /utils.php | |
parent | 0269dccacb67f25beb39dac8f16fb3d5538c7782 (diff) |
Fix some newbie errors.
Diffstat (limited to 'utils.php')
-rw-r--r-- | utils.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -62,6 +62,8 @@ function match_aspath_regex($aspath_regex) { } function log_to_file($log) { + global $config; + $log = '['.date("Y-m-d H:i:s").'] '.$log."\n"; file_put_contents($config['misc']['logs'], $log, FILE_APPEND | LOCK_EX); } |