Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Removed cache from typeIcon
James Cole5978b1c421be
diff --git a/app/Support/Twig/Journal.php b/app/Support/Twig/Journal.phpindex 52aebb02a5..e49ab29d18 100644--- a/app/Support/Twig/Journal.php+++ b/app/Support/Twig/Journal.php@@ -74,13 +74,6 @@ class Journal extends Twig_Extensionreturn new Twig_SimpleFilter('typeIcon', function (TransactionJournal $journal): string {- $cache = new CacheProperties();- $cache->addProperty($journal->id);- $cache->addProperty('typeIcon');- if ($cache->has()) {- return $cache->get(); // @codeCoverageIgnore- }-switch (true) {case $journal->isWithdrawal():$txt = '<i class="fa fa-long-arrow-left fa-fw" title="' . trans('firefly.withdrawal') . '"></i>';@@ -98,11 +91,8 @@ class Journal extends Twig_Extension$txt = '';break;}- $cache->store($txt);return $txt;--}, ['is_safe' => ['html']]);}