Should fix tests.

This commit is contained in:
James Cole
2015-06-03 21:15:52 +02:00
parent a7f6848e53
commit 409ec2e086
21 changed files with 151 additions and 132 deletions

View File

@@ -33,10 +33,10 @@ class Journal extends Twig_Extension
$prop = new CacheProperties();
$prop->addProperty($journal->id);
$prop->addProperty('typeIcon');
$md5 = $prop->md5();
if (Cache::has($md5)) {
return Cache::get($md5);
if ($prop->has()) {
return $prop->get();
}
$md5 = $prop->getMd5();
$type = $journal->transactionType->type;