Useless info messages removed
This commit is contained in:
@@ -134,9 +134,7 @@ class Index extends BaseSettings
|
||||
['uid' => local_user()]
|
||||
);
|
||||
|
||||
if ($result) {
|
||||
info(DI::l10n()->t('Profile updated.'));
|
||||
} else {
|
||||
if (!$result) {
|
||||
notice(DI::l10n()->t('Profile couldn\'t be updated.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -93,9 +93,7 @@ class Index extends BaseSettings
|
||||
|
||||
$filename = '';
|
||||
|
||||
if (Photo::store($Image, local_user(), 0, $resource_id, $filename, DI::l10n()->t('Profile Photos'), 0)) {
|
||||
info(DI::l10n()->t('Image uploaded successfully.'));
|
||||
} else {
|
||||
if (!Photo::store($Image, local_user(), 0, $resource_id, $filename, DI::l10n()->t('Profile Photos'), 0)) {
|
||||
notice(DI::l10n()->t('Image upload failed.'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user