| @@ -9,9 +9,9 @@ | ||
| 9 | 9 | { |
| 10 | 10 | add_filter('allowed_redirect_hosts', [$this, 'extendsAllowedHostsList']); |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | - function extendsAllowedHostsList($hosts) | |
| 13 | + public function extendsAllowedHostsList($hosts) | |
| 14 | 14 | { |
| 15 | 15 | $config = acym_config(); |
| 16 | 16 | $allowedHosts = $config->get('allowed_hosts', []); |
| 17 | 17 | if (!is_array($allowedHosts)) $allowedHosts = explode(',', $allowedHosts); |
| @@ -23,6 +23,5 @@ | ||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | return $hosts; |
| 26 | 26 | } |
| 27 | - | |
| 28 | 27 | } |