diff --git a/src/Cms/System.php b/src/Cms/System.php index 5b8d8de050..14446fe512 100644 --- a/src/Cms/System.php +++ b/src/Cms/System.php @@ -484,8 +484,11 @@ public function register(string $license = null, string $email = null): bool throw new InvalidArgumentException(['key' => 'license.email']); } + // get the hub address + $hub = option('hub', 'https://hub.getkirby.com'); + // @codeCoverageIgnoreStart - $response = Remote::get('http://hub.getkirby.test/register', [ + $response = Remote::get($hub . '/register', [ 'data' => [ 'license' => $license, 'email' => Str::lower(trim($email)),