mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
related to #1481 added feedback message for maintenance actions
This commit is contained in:
@@ -40,6 +40,7 @@ switch ($action)
|
||||
update_category('all');
|
||||
update_global_rank();
|
||||
invalidate_user_cache(true);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'images' :
|
||||
@@ -49,16 +50,19 @@ switch ($action)
|
||||
include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');
|
||||
update_rating_score();
|
||||
invalidate_user_cache();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'delete_orphan_tags' :
|
||||
{
|
||||
delete_orphan_tags();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'user_cache' :
|
||||
{
|
||||
invalidate_user_cache();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'history_detail' :
|
||||
@@ -68,6 +72,7 @@ DELETE
|
||||
FROM '.HISTORY_TABLE.'
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'history_summary' :
|
||||
@@ -77,6 +82,7 @@ DELETE
|
||||
FROM '.HISTORY_SUMMARY_TABLE.'
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'sessions' :
|
||||
@@ -121,7 +127,7 @@ DELETE
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'feeds' :
|
||||
@@ -132,6 +138,7 @@ DELETE
|
||||
WHERE last_check IS NULL
|
||||
;';
|
||||
pwg_query($query);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'database' :
|
||||
@@ -144,6 +151,7 @@ DELETE
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/check_integrity.class.php');
|
||||
$c13y = new check_integrity();
|
||||
$c13y->maintenance();
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'search' :
|
||||
@@ -160,6 +168,7 @@ DELETE
|
||||
$template->delete_compiled_templates();
|
||||
FileCombiner::clear_combined_files();
|
||||
$persistent_cache->purge(true);
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
case 'derivatives':
|
||||
@@ -173,6 +182,7 @@ DELETE
|
||||
clear_derivative_cache($type_to_clear);
|
||||
}
|
||||
}
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -225,6 +235,7 @@ DELETE
|
||||
$page['infos'][] = l10n('You are running the latest version of Piwigo.');
|
||||
}
|
||||
}
|
||||
$page['infos'][] = l10n('Action succesfully performed.');
|
||||
}
|
||||
|
||||
default :
|
||||
|
||||
@@ -1241,3 +1241,4 @@ $lang['Can be shared by several individuals without conflict (they cannot change
|
||||
$lang['Equivalent to deactivation. The user is still in the list, but can no longer log in.'] = 'Equivalent to deactivation. The user is still in the list, but can no longer log in.';
|
||||
$lang['%s MB'] = '%s MB';
|
||||
$lang['Your selection'] = 'Your selection';
|
||||
$lang['Action succesfully performed.'] = 'Action succesfully performed.';
|
||||
|
||||
@@ -1248,3 +1248,4 @@ $lang['Portraits'] = 'Portraits';
|
||||
$lang['Edit photo'] = 'Éditer la photo';
|
||||
$lang['Delete tag "%s"?'] = 'Supprimer le tag "%s" ?';
|
||||
$lang['Your selection'] = 'Votre selection';
|
||||
$lang['Action succesfully performed.'] = 'Action effectuée avec succès.';
|
||||
|
||||
Reference in New Issue
Block a user