]> git.mxchange.org Git - friendica.git/commitdiff
Use Config::get instead of get_config
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 27 Apr 2017 02:08:47 +0000 (22:08 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 27 Apr 2017 02:08:47 +0000 (22:08 -0400)
include/network.php

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