Move Config::get() to DI::config()->get()
This commit is contained in:
parent
c67ad31c8b
commit
1ce63185ab
38 changed files with 342 additions and 342 deletions
|
@ -76,7 +76,7 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
|
|||
|
||||
$return = DI::cache()->get($cache_key);
|
||||
|
||||
if (empty($return) || Config::get('system', 'ignore_cache')) {
|
||||
if (empty($return) || DI::config()->get('system', 'ignore_cache')) {
|
||||
$return = mastodoncustomemojis_fetch_custom_emojis_for_url($api_base_url);
|
||||
|
||||
DI::cache()->set($cache_key, $return, empty($return['texts']) ? Duration::QUARTER_HOUR : Duration::HOUR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue