From cc987fff386d01f3a8939ff1a0a6c9eff53b56de Mon Sep 17 00:00:00 2001 From: Michal Fiedorowicz Date: Fri, 26 Aug 2016 13:13:29 +0100 Subject: [PATCH] Bugfix --- README.md | 4 ++++ Theme.php | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2ba546d..c71f864 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,10 @@ Installation Changelog --------- +## 1.1.0.5-alpha, August 26, 2016 + +- Bugfix + ## 1.1.0.4-alpha, June 8, 2016 - Styling update for selectize diff --git a/Theme.php b/Theme.php index e7dc79e..4a51573 100644 --- a/Theme.php +++ b/Theme.php @@ -17,14 +17,7 @@ class Theme { public static function getTypeKitCode() { - $typeKitCode = Setting::getDb()->cache(function ($db) { - return Setting::findValue('MATACMS_TYPEKIT_CODE'); - }, null, new \matacms\cache\caching\MataLastUpdatedTimestampDependency()); - - if(empty($typeKitCode)) - throw new ServerErrorHttpException('Setting for MATACMS_TYPEKIT_CODE is not defined'); - - return $typeKitCode; + return Setting::findValue('MATACMS_TYPEKIT_CODE'); } }