| @@ -71,11 +71,10 @@ | ||
| 71 | 71 | public static function get_remote_domains( $refresh = false ) { |
| 72 | 72 | static $domains = array(); |
| 73 | 73 | |
| 74 | 74 | if ( $refresh || empty( $domains ) ) { |
| 75 | - global $wpmcsService; | |
| 76 | - $domain = $wpmcsService->get_domain(); | |
| 77 | - $settings = Utils::get_settings(); | |
| 75 | + $domain = Service::instance()->get_domain(); | |
| 76 | + $settings = Utils::get_settings(); | |
| 78 | 77 | if ( |
| 79 | 78 | isset($settings['enable_cdn']) && $settings['enable_cdn'] && |
| 80 | 79 | isset($settings['cdn_url']) && !empty($settings['cdn_url']) |
| 81 | 80 | ) { |