Use Config::get instead of get_config

This commit is contained in:
Hypolite Petovan 2017-04-26 22:08:47 -04:00
parent 188d3a6f5e
commit 9c53108a3e
1 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ function allowed_url($url) {
return false; return false;
} }
$str_allowed = get_config('system', 'allowed_sites'); $str_allowed = Config::get('system', 'allowed_sites');
if (! $str_allowed) { if (! $str_allowed) {
return true; return true;
} }
@ -535,7 +535,7 @@ function blocked_url($url) {
return true; return true;
} }
$domain_blocklist = get_config('system', 'blocklist', array()); $domain_blocklist = Config::get('system', 'blocklist', array());
if (! $domain_blocklist) { if (! $domain_blocklist) {
return false; return false;
} }