mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Useless info messages removed
This commit is contained in:
parent
0b423b73ac
commit
3fc3ded750
39 changed files with 47 additions and 90 deletions
|
@ -59,11 +59,11 @@ class RemoveTag extends BaseModule
|
|||
]);
|
||||
|
||||
if ($item_id && strlen($term)) {
|
||||
if (FileTag::unsaveFile(local_user(), $item_id, $term, $category)) {
|
||||
info('Item removed');
|
||||
if (!FileTag::unsaveFile(local_user(), $item_id, $term, $category)) {
|
||||
notice(DI::l10n()->t('Item was not removed'));
|
||||
}
|
||||
} else {
|
||||
info('Item was not deleted');
|
||||
notice(DI::l10n()->t('Item was not deleted'));
|
||||
}
|
||||
|
||||
DI::baseUrl()->redirect('network?file=' . rawurlencode($term));
|
||||
|
|
|
@ -35,7 +35,7 @@ class SaveTag extends BaseModule
|
|||
public static function init(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
info(DI::l10n()->t('You must be logged in to use this module'));
|
||||
notice(DI::l10n()->t('You must be logged in to use this module'));
|
||||
DI::baseUrl()->redirect();
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,6 @@ class SaveTag extends BaseModule
|
|||
if ($item_id && strlen($term)) {
|
||||
// file item
|
||||
Model\FileTag::saveFile(local_user(), $item_id, $term);
|
||||
info(DI::l10n()->t('Filetag %s saved to item', $term));
|
||||
}
|
||||
|
||||
// return filer dialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue