This commit is contained in:
James Cole
2015-12-13 10:05:13 +01:00
parent 59f57c96e9
commit c4c4fbc34c
10 changed files with 19 additions and 19 deletions

View File

@@ -23,10 +23,10 @@ class Budget extends Twig_Extension
{
$functions = [];
$functions[] = new Twig_SimpleFunction(
'spentInRepetitionCorrected', function (LimitRepetition $repetition) {
'spentInRepetition', function (LimitRepetition $repetition) {
$cache = new CacheProperties;
$cache->addProperty($repetition->id);
$cache->addProperty('spentInRepetitionCorrected');
$cache->addProperty('spentInRepetition');
if ($cache->has()) {
return $cache->get(); // @codeCoverageIgnore
}