diff --git a/Admin/Install/Media.php b/Admin/Install/Media.php index 3791694..5acb55b 100644 --- a/Admin/Install/Media.php +++ b/Admin/Install/Media.php @@ -45,6 +45,6 @@ class Media $defaultProfileImage = \reset($media['upload'][0]); $setting = new Setting(); - SettingMapper::create($setting->with(0, 'default_profile_image', (string) $defaultProfileImage->getId(), 'Profile')); + SettingMapper::create($setting->with(0, 'default_profile_image', (string) $defaultProfileImage->getId(), '\\d+', 'Profile')); } } diff --git a/Admin/Media.php b/Admin/Media.php index 3791694..5acb55b 100644 --- a/Admin/Media.php +++ b/Admin/Media.php @@ -45,6 +45,6 @@ class Media $defaultProfileImage = \reset($media['upload'][0]); $setting = new Setting(); - SettingMapper::create($setting->with(0, 'default_profile_image', (string) $defaultProfileImage->getId(), 'Profile')); + SettingMapper::create($setting->with(0, 'default_profile_image', (string) $defaultProfileImage->getId(), '\\d+', 'Profile')); } } diff --git a/Admin/Routes/Web/Api.php b/Admin/Routes/Web/Api.php index 1c58c90..56517c5 100755 --- a/Admin/Routes/Web/Api.php +++ b/Admin/Routes/Web/Api.php @@ -1,4 +1,16 @@ -