Skip to content

Commit

Permalink
Saving tokens prices fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
lexa-m committed Jun 3, 2019
1 parent 5cf5091 commit 1cd2f81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cache_tokens_with_prices.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
}
$confPrices .= '];'. "\n";
if($numTokens > MIN_TOKENS_NUM){
file_put_contents(dirname(__FILE__) . '/../service/config.prices.php', $confPrices);
$file = dirname(__FILE__) . '/../service/config.prices.php';
file_put_contents($file . '.tmp', $confPrices);
rename($file . '.tmp', $file);
}
}
}catch(\Exception $e){
Expand Down

0 comments on commit 1cd2f81

Please sign in to comment.