Skip to content

Commit

Permalink
Fix issue DenisOgr#17
Browse files Browse the repository at this point in the history
  • Loading branch information
KeKKai authored Jan 24, 2019
1 parent 512bee8 commit 2df51c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CronController.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected function formatFileName($pattern, $task){
array($this->logsDir, $task['command'], $task['action'], getmypid()),
$pattern
);
return preg_replace_callback('#%D\((.+)\)#U', create_function('$str', 'return date($str[1]);'), $pattern);
return preg_replace_callback('#%D\((.+)\)#U', function($str){return date($str[1]);}, $pattern);
}

/**
Expand Down

0 comments on commit 2df51c5

Please sign in to comment.