Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Commit

Permalink
Added support for timestamp placeholder in feed filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasen Yanev committed Jan 21, 2014
1 parent d87b42e commit 4ccc9bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Kohana/Task/Feed/Generate.php
Expand Up @@ -32,6 +32,10 @@ protected function _execute(array $options)

$file = DOCROOT.$config['file'];

$file = strtr($file, array(
":timestamp" => strtotime('now')
));

Minion_CLI::write('Generating '.json_encode($config));

$filters = is_array($config['filter']) ? $config['filter'] : explode(',', $config['filter']);
Expand Down

0 comments on commit 4ccc9bf

Please sign in to comment.