Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Fiedorowicz committed Aug 26, 2016
1 parent 840b163 commit cc987ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

}

0 comments on commit cc987ff

Please sign in to comment.